php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13245 Hard 8Mb limit on file uploads?
Submitted: 2001-09-11 04:55 UTC Modified: 2013-08-02 07:14 UTC
From: boaz at corky dot net Assigned: mike (profile)
Status: Closed Package: HTTP related
PHP Version: 4.0.6 OS: linux
Private report: No CVE-ID: None
 [2001-09-11 04:55 UTC] boaz at corky dot net
When trying to upload files larger than 8Mb I get:
POST Content-Length of 9470478 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

On PHP.INI i've set:
upload_max_filesize     =       28388608
and just in case:
memory_limit            =       33554432

on the script side MAX_FILE_SIZE is set to 24117248

my poop or a bug?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-11 12:29 UTC] sniper@php.net
Try these settings instead:

post_max_size = 16M
upload_max_filesize = 16M
memory_limit = 16M

(memory_limit only affects this if you have configured
php with --enable-memory-limit)

--Jani



 [2001-09-12 06:42 UTC] boaz at corky dot net
Jani,

No go. Still same message:
[12-Sep-2001 13:46:07] PHP Warning:  POST Content-Length of 12148085 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
 [2001-09-12 07:46 UTC] boaz at corky dot net
Jani,

No go. Still same message:
[12-Sep-2001 13:46:07] PHP Warning:  POST Content-Length of 12148085 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
 [2001-09-12 08:01 UTC] sniper@php.net
I hope you also restarted your webserver after changing
these values in php.ini??

Check what phpinfo() has to say about these settings.

--Jani

 [2001-10-03 11:06 UTC] sander@php.net
No feedback. Closing.
 [2001-10-04 19:49 UTC] boaz at corky dot net
changed those.
no go.
PHP INFO reports upload limit of 16Mb, although it cant go over 8Mb.

Memory limit is set at 8Mb - didnt compile with this option.
 [2001-10-04 19:53 UTC] sniper@php.net
Did you change the other options? post_max_size / memory_limit ?


 [2001-10-04 22:34 UTC] boaz at corky dot net
I'm reporting something I belive to be a bug.
I wouldn't complain about it here otherwise, now would I?
 [2001-10-05 10:24 UTC] sniper@php.net
You're the only one who experiences this 'bug' so I doubt it
is a bug but only a misconfiguration. Did you or did you
not set those directives I mentioned before?

--Jani

 [2001-10-06 06:46 UTC] boaz at corky dot net
Of course I did.

Know of anybody who uploads more than 8Mb ?
 [2001-10-06 08:06 UTC] jmoore@php.net
yep, I have lots of times.. must be a memory limit somewhere in your system stopping PHP getting enough memory to perform the upload. can you try the exact settings jani said (the 16M ones) and lets see if that works.

- James
 [2001-10-06 08:12 UTC] hholzgra@php.net
quick guess: process resource limits active?

see "man ulimit" ...
 [2001-10-23 11:23 UTC] sniper@php.net
status -> feedback
 [2001-10-28 17:12 UTC] sniper@php.net
The http upload stuff has been rewritten in CVS.
Try the latest CVS snapshot from http://snaps.php.net/
Also check the ulimit issue Hartmut mentioned.

--Jani

 [2002-07-03 10:55 UTC] boaz at corky dot net
post_max_size fixed my problem.

thanks.
 [2013-08-02 07:07 UTC] 979894238 at qq dot com
Can anyone tell me how to handle this WARNING?
i want to transform this WARNING to an exception and catch it.
 [2013-08-02 07:14 UTC] mike@php.net
-Assigned To: +Assigned To: mike
 [2013-08-02 07:14 UTC] mike@php.net
This is not a support forum.

It happens prior your code is run, so it cannot be caught.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 24 03:01:28 2024 UTC