Hi all, I'm having a difficult time determining if this is a Mozilla .99 bug, or something in PHP [currently using 4.0.6 under linux 2.4.8]. Using 2 small test files:
## upload1.html ## <html><head><title>upload test</title></head><body> <FORM ENCTYPE="multipart/form-data" METHOD="POST" ACTION="upload2.php"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000"> <INPUT TYPE="FILE" NAME="incoming" SIZE="30" MAXLENGTH="58"><br> <INPUT TYPE="submit" NAME="update" VALUE="Commit Changes"> <INPUT TYPE="RESET" NAME="Reset" VALUE="Reset Changes"> </form> </body></html> ## upload2.php ## <?php if ($HTTP_POST_FILES['incoming']['tmp_name'] != 'none') { echo "a file was uploaded"; } else { echo "nothing was uploaded"; } ?> With Mozilla .9.4.1 [eg: Netscape 6.2.2 for windoze], Netscape 4.79, Opera 6.0.1, and IE 5.5sp2, if a user hits the submit button *without* uploading, the proper string ["nothing was uploaded"] is returned. However, if a user has Galeon v1.2.0 or Mozilla 0.9.9 [running under linux], the "a file was uploaded" string will appears since $HTTP_POST_FILES['incoming']['tmp_name'] is an empty string. From reading the PHP docs, if no file was uploaded, 'tmp_name' should be "none", which it is if you're using a non-Mozilla .99 based browser. If a user does upload a file, all browsers are happy ['tmp_name' is assigned properly]. Is this a browser/gecko bug, or a PHP bug? TIA, /vjl/ [who noticed bugs #11198, 10602, 16426 and 13863, but all are closed] -- Vince LaMonica UC Irvine, School of Social Ecology W3 Developer <*> 116 Social Ecology I, Irvine, CA 92697 [EMAIL PROTECTED] https://www.seweb.uci.edu/~vjl Life is what happens to you when you're making other plans. - Betty Talmadge -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php