note 14541 deleted from features.file-upload by irc-html

From: Date: Sat, 19 Jan 2002 20:35:25 +0000
Subject: note 14541 deleted from features.file-upload by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25366@lists.php.net to get a copy of this message
I had a problem uploading files using php4 on Windows 98, and testing on an IE5 browser. Only certain files (e.g. .TXT files) were uploaded, but others returned a filename 'none'. I couldn't see the problem in PHP as I had the correct php.ini settings etc. The answer was in the HTML form: <FORM ENCTYPE="multipart/form-data" ACTION="upload.php" METHOD="POST"> Send this file: <INPUT NAME="userfile" TYPE="file"> <INPUT TYPE="submit" VALUE="Send File"> </FORM> When I placed METHOD="POST" first, before ENCTYPE and ACTION, it worked fine: <FORM METHOD="Post" ENCTYPE="multipart/form-data" ACTION="upload.php"> I don't know the reason for this, but it might help others in the same situation. I do not know whether the same applies to Netscape/Mozilla , Opera etc.

« previous php.notes (#25366) next »