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 the All in one file WP migration file extension plugin from this link.
  3. 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
  4. If you want more upload size, follow the steps below.
  5. Go to plugins-> plugin editor-> select plugin to edit -> All in one wp migration
  6. Go to constants.php
  7. Go to line 303. (or) look for define( ‘AI1WM_MAX_FILE_SIZE’, 2 << 28 );
  8. Changes 2<<28 to 2<<30 or any other number more than 30 define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 );
  9. This increases the max upload file size to 2GB.All in one wp migration unlimited extension
  10. 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

5 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!!!

Leave a Reply

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

Bitnami