In this article we will see how to increase the maximum upload or import size from 40MB to unlimited.

Steps-

  1. By default the maximum upload size is 40 MB.
  2. Install an older version of the All in one WordPressall-in-one-wp-migration.6.68 download plugin from here. (this was suggested by one of our readers Angel Asenov since the current versions wont support this method)
  3. Install the All in one file WP migration file extension plugin from this link.
  4. This will increase your max upload file size from 40 to 512 MB. This might be enough for small websites.All in one wp migration unlimited extension
  5. If you want more upload size, follow the steps below.
  6. Go to plugins-> plugin editor-> select plugin to edit -> All in one wp migration
  7. Go to constants.php
  8. Go to line 303. (or) look for define( ‘AI1WM_MAX_FILE_SIZE’, 2 << 28 );
  9. If the line is define( ‘AI1WM_MAX_FILE_SIZE’, 536870912 ), change it to define( ‘AI1WM_MAX_FILE_SIZE’, 536870912 * 2 ). This will increase from 512 MB to 1 GB (536870912 is just 512 MB in bytes).
  10. Changes 2<<28 to 2<<30 or any other number more than 30 define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 );
  11. This increases the max upload file size to 2GB.All in one wp migration unlimited extension
  12. You can change the 30 to any other number to see the increase in upload size to get unlimited import size in all in one wp migration plugin. For example, if you change it to define( ‘AI1WM_MAX_FILE_SIZE’, 2 << 60 ) you will get 2000000 TB upload limit.

    unlimited upload limit all in one wp plugin

Articles you may like

Categories: Uncategorized

Muthali Ganesh

Reach out to muthali at muthaliganesh77 at gmail.com

15 Comments

oli · April 12, 2019 at 10:34 am

Does not work.
the Text is: Maximum upload file size: Unlimited

but if you try to uploade the pop up comes up

The file that you are trying to import is over the maximum upload file size limit of 512MB.
You can remove this restriction by purchasing our Unlimited Extension.

    Muthali Ganesh · April 12, 2019 at 11:14 am

    After that you have to do the second part and edit the original extension ( the 2<<28 part)

Angel Asenov · April 18, 2019 at 6:52 pm

Such solutions are no longer working in the latest releases of the plugin as they fixed such client side work arounds. The hard limitation for uploads in their latest versions is 512MB. Trust me on this one, I am Senior technical support at a hosting company. A work around in this case without purchasing the upgrade is to install an older version of the plugin such as:

https://pluginarchive.com/wordpress/all-in-one-wp-migration/v/6-68

and then editing the constants.php file and more specifically the line that states:

define( ‘AI1WM_MAX_FILE_SIZE’, 536870912 );

The number/restriction above is for 512MB so you could change it to any number you would like.

Best of luck

    Muthali Ganesh · April 19, 2019 at 4:09 am

    Thanks for this information. I havent checked for the latest releases of the plugin. I will update the blog post shortly.

    PixDraft · May 19, 2019 at 10:48 pm

    You are amazing!!! thanks a lot for such a great solution. Great!!!

Taskit · May 26, 2019 at 8:00 pm

Thanks I just used the extension and it worked like a dream with the latest version of the all in one plugin – but I only needed up to 512mb.

Moxet Khan · May 30, 2019 at 8:21 am

This method does’nt work anymore. It support 512MB only.

    Muthali Ganesh · May 30, 2019 at 4:34 pm

    It works. Please follow the steps as mentioned in the blog

Dennis · June 4, 2019 at 4:04 am

Just go to this line:

define( ‘AI1WM_MAX_FILE_SIZE’, 536870912 );

add * 8

So it looks like this:

define( ‘AI1WM_MAX_FILE_SIZE’, 536870912 * 8 );

Done, if you need more. Make 8 a larger multiple.

Sam · June 4, 2019 at 2:33 pm

Thank you so much dude, it’s working great.

diablo · June 12, 2019 at 11:49 pm

it does not work on v 6.97 how can we do?

    Muthali Ganesh · June 14, 2019 at 5:28 am

    Use the old version (download link is here)

vincent · June 14, 2019 at 3:52 am

thanks A LOT,use only old version guys.

Eduardo · June 18, 2019 at 1:39 am

You just saved 120 days of work and a lot of content… Thank you (17 July 2019)

    Muthali Ganesh · June 18, 2019 at 6:25 am

    Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *