Share this post

How to increase the All in One WP Migration plugin upload/import limit.

How to increase the import size limit in All in One WP Migration plugin

As a website developer, you’ll be dealing with a lot of backup and migration plugins – checking which ones are good and a viable option in your workflow. At WP Adventure, we love the All in One WP Migration plugin because of its reputation and robust built. As a web design company, when building websites for clients, we tend to create a site locally or on a development server and then migrate the site on the client’s server when done. The All in One WP Migration plugin does a fantastic job of migrating the site using the ‘Import’ function.

However one problem that you may run into is the size limit restriction it places to import a site. Usually, the size restriction is placed at 512 MB – which means that if you try to import a .wpress* file that is over 512 MB, it will ask you to get the paid version of the plugin. From other people on the internet, we’ve come to know that they’ve seen the default size limit of just 128 MB.

*wpress file : The file that you exported using the same plugin on the dev server and trying to import it on the actual client server.

It looks like the following (notice the 128 MB upload limit):

All in One WP Migration Size Restriction 128 MB

However, you’re in luck today as the method below works very well to bypass the size restriction and shows how you can increase the file upload limit placed by All in One WP Migration plugin (whether the size restriction is 128 MB, 256 MB, 512 MB or whatever else).

In this post, we’ll show you 2 methods of increasing the upload limit:

1) Using .htaccess file OR
2) Editing the constants.php file (recommended)

1) Using .htaccess file

First of all, take a backup of your entire WordPress website as is highly recommended to do so before updating, changing or making any edits to your WordPress plugins. If something goes wrong, you always have a recent backup to restore from, so that’s that.

You will require access to the root folder – the one that has the site’s .htaccess file in it.

Locating htaccess file in cPanel

Open your .htaccess file and place the following code in it:

php_value upload_max_filesize 2048M
php_value post_max_size 2048M
php_value memory_limit 4096M
php_value max_execution_time 0
php_value max_input_time 0

The .htaccess file should now look like this:

Editing htaccess file with code

And that’s it. Once you save the file and refresh the ‘Import’ page in WordPress, All in One WP Migration will display the import size limit as 2 GB (you can change this number to whatever you want in the code above, so if you want it to be 1 GB – simply type 1024M in the code above instead of 2048M)

You should now be able to bypass the size restriction and import a file easily as seen below.

All in One WP Migration Max Upload File Size 2 GB

2) Editing the constants.php file (our preferred & recommended method)

The second method is recommended as we’ve noticed that although the first method increases the size limit, the actual import may get stuck at 100% and not continue any further. Also, we usually go this route whenever we want to bypass the restriction, and have had no issues whatsoever so far. As always, take a backup first before proceeding.

If you’d like to download this version, it is available on GitHub. You can do it by following this link: Download 6.77

Note: We’ve only tested this method using version 6.77

All in One WP download on GitHub

Once you’ve uploaded version 6.77 and activated the All in One WP Migration plugin, go to ‘Plugin Editor’ as shown below:

Locating Plugin Editor in WordPress

Select the All in One WP Migration from the drop-down list:

Selecting All in One WP Migration from the list

Then click on the constants.php file:

Locating the Constants PHP file

Search for line number 284 to look for ‘Max File Size’. It should look something like this:

define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 );
Locating Max File Size line at number 284

If you want to change it to 5GB, simply change the above line to:

define( 'AI1WM_MAX_FILE_SIZE', 536870912 * 10 );
Editing Max File Size limit

Click on Update File and save it. Then refresh the Import page for All in One WP and you should see that the size limit for importing files has been increased to 5 GB.

Max Upload File Size of 5 GB

We find that this method works best and doesn’t involve dealing with logging into your cPanel account and playing around with the .htaccess file.

Congratulations! You’ve done it. You can now easily import any file you’d like using this amazing plugin. Migrating your sites are not a hassle anymore!

We're all on an adventure!

2nd Floor, Building No. 150, Zakaria Masjid Street, Mumbai - 400 009, India.

Web design

Web development

WordPress development

SEO services

Ecommerce SEO services

Local SEO services

Social media marketing

Digital marketing

Internet marketing

Pay per click (PPC)

Content writing

Mobile app development

Website SEO Audit

Blog

About Us

Contact

Refer and Earn

Privacy Policy

Scroll to Top