I want to upload files through a web application and it works as long as the files are under 8 mb. But anything greater gives the following error in the Apache error log:
POST Content-Length of 8593520 bytes exceeds the limit of 8388608 bytes

In php.ini I have:
file_uploads = On
upload_max_size = 20M
memory_limit = 128M
post_max_size = 25M

And in httpd.conf:
LimitRequestBody 20971520

Where and what do I have to change to get this working?

8 Years
Discussion Span
Last Post by colweb

There are a number of specialist websites that will cope with more than 8mb but I believe mrniceguy is correct in that most ISP's will not pass more than 8mb.
The specialist sites require both end of the line sender and receiver to connect (not simultaneously!) to pass the data through.


The server (Apache 2.2.8) is managed by me.

Changed max_execution_time and max_input_time (both in php.ini) to 300. Then I did stop the server, waited for a minute or so (cheked to see it is really gone), and started the server again. (instead of httpd restart).

Now it is working.

Edited by colweb: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.