Problem uploading files over php forms in Apache
Today I encountered the problem of uploading files that clearly do not exceed the
The following error appears:
Request Entity Too Large The requested resource media-new.php does not allow request data with POST requests ...
This error message is not related to php settings. This is a limitation in the Apache server in
In order to fix it, you need to add the following lines to
<IfModule mod_security.c> <Files media-new.php> #4Mb LimitRequestBody 4096000 </Files> </IfModule>
Thus, for the
media-new.php file, a limit of
4Mb is set on the size of the request body.