php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #8377 File uploads with POST methods takes full Server processing capacity and memory
Submitted: 2000-12-22 10:16 UTC Modified: 2001-10-28 12:16 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: samuel at liones dot nl Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.4 OS: Windows NT4/2000
Private report: No CVE-ID: None
 [2000-12-22 10:16 UTC] samuel at liones dot nl
When doing a file upload on a big file (say 22MB), PHP takes up progressingly more CPU capacity for the whole duration of the upload.

The server doesn't crashes but it is so slow that other people can't reach my server, when i'm uploading a big file.

I now use a ASP-component on the server-side which handles the uploading and this component doesn't slow my server down when uploading a big file.

Can PHP handle big file uploads in the future?

This is the HTML that uploads the file:
<input type=hidden name='MAX_FILE_SIZE' value='25000000'>
<input type='file' size='50' name='frm_file_name' class='input' value=''></input>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-22 16:34 UTC] rasmus@php.net
This is a known inefficiency.  Jim Winstead is looking addressing this using libapreq which is smarter about handling large file uploads.

(Moving to feature request)
 [2001-05-01 22:09 UTC] sniper@php.net
Just to note that this is still a problem..
I tried with 1Gb file and my system almost crashed.
(On Linux)

--Jani

 [2001-05-09 11:10 UTC] sniper@php.net
Marked as to be fixed before 4.0.6
 [2001-09-17 13:14 UTC] sniper@php.net
I've been working on this issue. The fix won't be
in 4.0.7/4.1 but hopefully in the next release after those.

--Jani

 [2001-10-28 12:16 UTC] sniper@php.net
This should be fixed in CVS now. You can try the latest 
development build from http://www.php4win.com/ but make
sure it's dated after 27th of October 2001.

Also, there are some minor leaks still in the new code.
If you encounter such leaks, please send the shortest
possible code + html with which you can reproduce the leak
to php-dev@lists.php.net (or me) so we can get rid of these
leaks. 

The fix will be in PHP 4.2.0.

--Jani


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC