Bug #1978: file upload broken in beta2?

From: Date: Thu, 05 Aug 1999 22:58:59 +0000
Subject: Bug #1978: file upload broken in beta2?
Groups: php.dev 
Request: Send a blank email to php-dev+get-9584@lists.php.net to get a copy of this message
From: roberts_chris@yahoo.com Operating system: Solaris 7 x86 & SPARC PHP version: 4.0b1 PHP Bug Type: Other Bug description: file upload broken in beta2? The following code will work on the 3.0.x series as well as 4.0b1 but NOT 4.0b2-1 or 4.0b2-2.(haven't tried cvs). All configured identically. The only variable that works is $userfile_size. Sol7 x86: egcs-1.1.2 and the latest GNU tools Sol7 sparc: gcc-2.8.1 and a mixture of SUN/GNU tools <HTML> <HEAD><TITLE>Upload Test</TITLE></HEAD> <BODY> <? if ( !$action ) { echo "<form enctype=multipart/form-data action=".$PHP_SELF." method=POST>\n"; echo "<input type=hidden name=MAX_FILE_SIZE value=500000000>\n"; echo "Send this file: "; echo "<input name=userfile type=file>\n"; echo "<input type=hidden name=action value=show_me_the_file>\n"; echo "<input type=submit value=Send File>\n"; echo "</form>\n"; } else { echo "<h2>Size: $userfile_size</h2>\n"; echo "<h2>Type: $userfile_type</h2>\n"; echo "<h2>Name: $userfile_name</h2>\n"; echo "<h2>File: $userfile</h2>\n"; } ?> </BODY> </HTML>

« previous php.dev (#9584) next »