I am getting this error when trying to upload an import on WordPress on my XAMPP local dev environment:
Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
I changed the upload_max_filesize from 2M to 1000M, but that didn’t seem to do anything.
Any ideas?
Kuldeep Baberwal Changed status to publish January 28, 2025
In PHP, 8388608 bytes are 8M, the default limit in PHP. Update your post_max_size specifies the maximum file size a user can upload, and size of the file can be 1 megabyte (in php.ini) if the user upload the largest file he can file at once (i.e., it will be able to upload 5 of them at the same time after the server was restarted).