File Upload problems
| From: | Hartmut Holzgraefe | Date: | Wed, 27 Oct 1999 12:03:39 +0000 |
| Subject: | File Upload problems | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-5725@lists.php.net to get a copy of this message | ||
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 .
Any ideas anyone ?
-----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>