PHP 4.0 Bug #7450: File upload doesn't work.

From: Date: Wed, 25 Oct 2000 15:05:16 +0000
Subject: PHP 4.0 Bug #7450: File upload doesn't work.
Groups: php.dev 
Request: Send a blank email to php-dev+get-35912@lists.php.net to get a copy of this message
From: triscaner@yahoo.com Operating system: Linux, redhat 6.1 PHP version: 4.0.1pl2 PHP Bug Type: HTTP related Bug description: File upload doesn't work. <? //check for file upload if ($set=="go") { if (is_uploaded_file($UploadedFile)) { print("Local File: $UploadedFile <BR>\n"); print("Name: $UploadedFile_name <BR>\n"); print("Size: $UploadedFile_size <BR>\n"); print("Type: $UploadedFile_type <BR>\n"); print("<HR>\n"); } } ?> <FORM ENCTYPE="multipart/form-data" ACTION="73.php" METHOD=POST> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1024000"> <INPUT NAME="UploadedFile" TYPE="file"> <INPUT TYPE="hidden" name="set" value="go"> <INPUT TYPE="submit" VALUE="Upload"> </FORM> </BODY> </HTML> The above listing doesn't work on PHP 4.0.1 pl2 and PHP 3.0.17. Symptoms : once file is chosen and Upload button is pressed either browser stays as is (hangs) and the file is not copied into /tmp/ as it should or the browser displays a file not found message and the file is copied and left in /tmp/. this occurs both over the internet (PHP 4.0.1 pl2 as cgi on comercial server) and over ethernet (PHP 3.0.17 as apache static module - test machine) This is experianced with IE 5, IE 5.5, and Netscape 4.7 (netscape pops a "document contained no data" message) -- Edit Bug report at: http://bugs.php.net/?id=7450&edit=1

« previous php.dev (#35912) next »