POST Content Length exceeds the limit of 8388608 bytes when uploading in WordPress


You may try to upload a file on your WordPress site, a backup of your posts, or anything, only to find out that WordPress won’t let you, giving a warning such as “POST Content-Length of 48031673 bytes exceeds the limit of 8388608 bytes,” and the like.

This problem comes from your PHP configuration. In order to increase the limits of your uploads you should edit the php.ini file of your site and change these entries: upload_max_filesize and post_max_size, giving values that exceed the size of what you need to upload, e.g.

upload_max_filesize=88M
post_max_size=89M

Enjoy!