There is a lot of data being submitted no file uploads and the $_SERVER['CONTENT_LENGTH']
is being exceeded. Can this be increased?
post_max_size is the maximum size for all POST body data. It doesn't matter if you're POSTing JSON or your DVD collection, this is all POST body data. Your file upload counts towards this limit.
The default PHP values are 2 MB for upload_max_filesize, and 8 MB for post_max_size.
There are 2 different places you can set it:
php.ini
post_max_size=20M upload_max_filesize=20M
.htaccess / httpd.conf / virtualhost include
php_value post_max_size 20M php_value upload_max_filesize 20M
Which one to use depends on what you have access to.
.htaccess will not require a server restart, but php.ini and the other apache conf files will.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With