|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25784 really strange problem with file upload
Submitted: 2003-10-08 00:58 UTC Modified: 2003-10-08 01:05 UTC
From: kylewong at southa dot com Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 4.3.2 OS: Redhat 9
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: kylewong at southa dot com
New email:
PHP Version: OS:


 [2003-10-08 00:58 UTC] kylewong at southa dot com
one of my webserver with apache 1.3.27/php 4.3.2 got a really strange problem. 

I found that SOME of my jpg files (very small size, around 200kb) can never upload to my webserver. 

I tried to upload many other files (doc, jpg, pdf, zip, etc. from 1kb to 10M in size) without any problem, but there is just several jpgs I can never get them upload. 

Whenever I try to upload those god damn jpg file, it seems to take very very long time to upload(but I can't see any temp file at /tmp) and eventually the target script will timeout. If I do some changes with the jpg file with a graphic editor, save it as another file, then the modified version of file can be uploaded successfully!

I tried to upload from different locations, upgrade to 4.3.3RC1, rename the files, nothing help.

PS. Only ONE of my webserver have this problem .... my other servers works very well with those strange jpg files!

Reproduce code:
upload form:

<form enctype="multipart/form-data" action="hello.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">

echo $_FILES['userfile']['name'];
echo "<br />";
echo $_FILES['userfile']['type'];
echo "<br />";
echo $_FILES['userfile']['tmp_name'];
echo "<br />";
echo $_FILES['userfile']['error'];
echo "<br />";

Expected result:
Most files will get upload successfully, but I have several strange jpg files will timeout "hello.php".

This only happen with one of my webserver.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-08 01:05 UTC]
It should be obvious if just one server suffers from something like this: there's something wrong with that server NOT PHP.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Mar 31 04:03:39 2023 UTC