Page 1 of 1

Prevent Warning: POST Content-Length of …. bytes exceeds the limit – the smart fix

Posted: Sun Nov 06, 2016 9:14 pm
by axew3


When a form multipart/form-data is submitted to send a file, if dimension of submitted file to be uploaded exceeds the dimension of MAX_FILE_SIZE value, PHP emit a warning and the $_FILES global is empty.

Warning: POST Content-Length of …. bytes exceeds the limit

In WordPress you have something like:

Warning: POST Content-Length of ….. bytes exceeds the limit of … bytes in Unknown on line 0

Solution:
https://www.axew3.com/w3/2016/11/warning ... ow-to-fix/