php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20174 HTTP File upload
Submitted: 2002-10-30 13:03 UTC Modified: 2002-10-31 09:35 UTC
From: info at europoly dot net Assigned:
Status: Closed Package: IIS related
PHP Version: 4.2.3 OS: Windows 2000 SP3
Private report: No CVE-ID: None
 [2002-10-30 13:03 UTC] info at europoly dot net
I'm not sure if this relates only to IIS -

I upgraded to 4.2.1 and fileupload didn't work at all so then I used 4.2.3. It's better but still file upload seems buggy. The simplest test I could create is the script below, which generates an endless number of php$HEXNUMBERINC.tmp in the upload temp directory. Each file is about 4.999 KB in size. The only way I could find to stop it is to stop IIS.

Thanks,

Mike

+++++++++++++++++++++++++++++++
// filename: test.php
<?php
global $HTTP_POST_VARS;
if(isset($HTTP_POST_FILES['fileName'])){
	echo("POSTED ".$HTTP_POST_FILES['fileName']['tmp_name']."<br/>");
}
echo('
<html>
	<head>
</head>
	<body>

<form  enctype="multipart/form-data"  name="form1" action="test.php" method="post">

File<input  type="file" name="fileName" value="fred" />
<input  border="0" type="submit" name="subBut" value="upload"  />
</form>

	</body>
</html>');

?>
+++++++++++++++++++++++++++++++++++++++++++++++

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-30 19:05 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-10-31 03:07 UTC] info at europoly dot net
Thanks! The upload seems to work ok with this version
(although other things are now broken!)
 [2002-10-31 09:35 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

User reports problem is fixed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 09:01:29 2024 UTC