Unable to increase maximum file size upload

Bug Summary

I tried increasing the maximum size by changing conf/php/php.ini.hbs, but it doesn’t work.

Steps to reproduce

Create an empty wordpress instance and install All-in-One WP Migration.
Edit conf/php/php.ini.hbs` dsfdsafsdz

and change the following lines:

memory_limit = 4000M
post_max_size = 4000M
upload_max_filesize = 4000M

Then on the extension, try to import a file of 3.17GB. You will see that the info message shows an increased maximum file size. But even if you proceed to import, it will fail. See screenshot.

Environment Info

Describe your environment.

Supporting info

Please provide your Local Log. See this Community Forum post for instructions on how to do so:

Include any screenshots or video recordings of the issue to help others reproduce.

Your file size might be exceeding nginx’s client_max_body_size, @cduguet.

You can try increasing it in your app/conf/nginx/nginx.conf.hbs file. Change this line:

	client_max_body_size 1000M;

To this:

	client_max_body_size 4000M;

Then stop and start your site in Local.

If that does not work you could try importing your backup using WP-CLI from Local’s site shell using the WP-CLI commands for All-in-one migration, which should bypass any server limits (but not PHP’s limits).

La respuesta ha sido perfecta, muchas gracias, tenía el mismo problema

1 Like

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.