|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-10-08 01:05 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 23:00:02 2025 UTC |
Description: ------------ 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"> </form> hello.php <? 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.