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

User avatar
axew3
w3all User
w3all User
Posts: 2061
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

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

Post 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/