Ask a Question related to PHP Development, Design and Development.
-
kylewong at southa dot com #1
#25784 [NEW]: really strange problem with file upload
From: kylewong at southa dot com
Operating system: Redhat 9
PHP version: 4.3.2
PHP Bug Type: HTTP related
Bug description: really strange problem with file upload
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.
--
Edit bug report at [url]http://bugs.php.net/?id=25784&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25784&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25784&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25784&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25784&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25784&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25784&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25784&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25784&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25784&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25784&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25784&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25784&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25784&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25784&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25784&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25784&r=float[/url]
kylewong at southa dot com Guest
-
File Upload Problem
i have the same problem. -
File upload problem with CF7
I am getting a strange error when I am trying to upload a file to cf7. My code is below: <form action='index.cfm?fa=pub.welcome' method='post'... -
#25784 [Opn->Bgs]: really strange problem with file upload
ID: 25784 Updated by: sniper@php.net Reported By: kylewong at southa dot com -Status: Open +Status: ... -
Very strange file upload behavior
I tried to search for this issue on the group, but don't even know where to start, so here's my problem. We have a very simple form which has a... -
PHP file upload problem
Hi all, Heres a strange problem i am running into running Php4.2.2. I am uploading a file using a post and when i receive the file on my share...



Reply With Quote

