Problem with uploading Files with PHP 4.1.2 on IIS
| From: | Uhaj | Date: | Tue, 16 Apr 2002 05:33:01 +0000 |
| Subject: | Problem with uploading Files with PHP 4.1.2 on IIS | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13118@lists.php.net to get a copy of this message | ||
I have problem with uploading files - have anyone some idea?
php.ini:
.....
file_uploads = On
upload_tmp_dir = C:\Inetpub\Upload\
upload_max_filesize = 4M
.....
upload.php:
<?
if (is_uploaded_file($userfile))
{
echo "Name : ".$userfile ."<BR>\n";
echo "Orign : ".$userfile_name ."<BR>\n";
echo "Type : ".$userfile_type ."<BR>\n";
echo "Size: ".$userfile_size."<BR>\n";
}
?>
<BODY BGCOLOR=#FFFFFF>
<FORM ENCTYPE="multipart/form-data" ACTION="upload.php" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="4000000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
</BODY>
The response seems OK, but new file is not on hard drive
Response:
Name : C:\Inetpub\Upload\php14E4.tmp
orign : Test.doc
Type : application/msword
size: 19456
Thanks