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?
Go to browser and search for "php.ini" and then open it , and change these two values :
post_max_size= 1000000000000M
upload_max_filesize= 10000000000000M
if you open the "php.ini" file using notepad , you can search for these two values by clicking : cmd+f
Already restarted your Webserver?
This will force php to reload the
php.ini
From the XAMPP panel, click on the ADMIN button on the Apache site. Then choose to edit php.ini And add the missing post_max_size to a value you are comfortable with.