PHP 4.0 Bug #2637: forms with file-upload hand on submit

From: Date: Fri, 29 Oct 1999 12:04:22 +0000
Subject: PHP 4.0 Bug #2637: forms with file-upload hand on submit
Groups: php.dev 
Request: Send a blank email to php-dev+get-12000@lists.php.net to get a copy of this message
From: hholzgra@media-engineering.de Operating system: redhat 6 PHP version: 4.0 Latest CVS (29/10/1999) PHP Bug Type: Other Bug description: forms with file-upload hand on submit The following test code worked fine on a apache1.3.9 with php3 but hangs on apache1.3.9 with php4b2 It works most of the time when i remove the additional text input form the upload form but with it stracing the Web-Server shows that it hangs in a read() from a socket . -----8<--------------------------------------- <html> <head> <title>UPLOAD TEST 1</title> </head> <body> <? if( ! strcmp($REQUEST_METHOD,"GET") ): ?> <FORM ENCTYPE="multipart/form-data" METHOD=POST> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100000"> Send this file: <INPUT NAME="userfile" TYPE="file"> <br> <input type=text name=hallo> # PROBLEM AREA <br> <INPUT TYPE="submit" VALUE="Send File"> </FORM> <? else: ?> <ul> <? print "--- $fred <br>" ?> <? print "Userfile $userfile <br>" ?> <? print " name $userfile_name <br>" ?> <? print " size $userfile_size <br>" ?> <? print " type $userfile_type <br>" ?> <? print " hallo $hallo <br>" ?> </ul> <? endif ?> </body> </html>

« previous php.dev (#12000) next »