go to bug id or search bugs for
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?
Add a Patch
Add a Pull Request
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)
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
I hope you also restarted your webserver after changing
these values in php.ini??
Check what phpinfo() has to say about these settings.
No feedback. Closing.
PHP INFO reports upload limit of 16Mb, although it cant go over 8Mb.
Memory limit is set at 8Mb - didnt compile with this option.
Did you change the other options? post_max_size / memory_limit ?
I'm reporting something I belive to be a bug.
I wouldn't complain about it here otherwise, now would I?
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?
Of course I did.
Know of anybody who uploads more than 8Mb ?
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.
quick guess: process resource limits active?
see "man ulimit" ...
status -> feedback
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.
post_max_size fixed my problem.
Can anyone tell me how to handle this WARNING?
i want to transform this WARNING to an exception and catch it.
This is not a support forum.
It happens prior your code is run, so it cannot be caught.