|  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
11 + 20 = ?
Subscribe to this entry?

 [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: Tue Mar 28 21:03:37 2023 UTC