How to quickly increase the All-in-One WP Migration plugin upload limit

Update 11/09/2018

For the instructions outlined in this tutorial to work, you must use version 6.77 or earlier of the All-in-one WP Migration Plugin.

You can download version 6.77 here, all-in-one-wp-migration.6.77

In the constants file…

Find this…

// =================
// = Max File Size =
// =================
define( ‘AI1WM_MAX_FILE_SIZE’, 2 << 28 );

and replace with this…

// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 2 << 28 *1.2);

And you will have 16GB upload limit.

Increasing the 512MB size limit on All-in-One WP Migration Plugin

If the size of your .wpress file exceeds 512MB, you will be invited to buy the Unlimited Extension of All-in-One WP Migration.


Go ahead and open up /wp-content/plugins/all-in-one-wp-migration/constants.php

Find constants.php on following path

Lines 246:249 define the file upload size limit, there’s a nice comment there indicating such. If you’d like to control+f “size”, it should take you right to it.

// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 536870912 );

You’ll see the max size is defined in Bytes. In order to increase the upload size limit to 4GB, simply multiply the number seen here by 8.

// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 4294967296 );

Alternative Method

// =================
// = Max File Size =
// =================
define( 'AI1WM_MAX_FILE_SIZE', 536870912 * 8 );

Once you complete save the file and navigate back to the “import” function for the All-In-One Migration Plugin. The file upload limit now reads 4GB.


Now you can upload your file

Similar Posts

Leave a Reply

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


    1. Hello George,

      Did you download version 6.77 (link is given in the second paragraph)?
      It’ll not work with the latest version of All-in-one Migration plugin.

  1. Be careful with pairing the ph version of the old hosting and the new one. The version 6.77 works ok. Thanks.

  2. Hot damn dude,

    I knew there was something wrong with the plugin itself. The company wants you to pay for their service, and they lied about you can manually change the upload limit.

    Only the older version can do this trick, awesome, thanks.

    1. It work with latest version when you change the 28 to 32 0r what ever you like
      // =================
      // = Max File Size =
      // =================
      define( ‘AI1WM_MAX_FILE_SIZE’, 2 << 28 );

      to// =================
      // = Max File Size =
      // =================
      define( ‘AI1WM_MAX_FILE_SIZE’, 2 << 32 );


  3. Hi!
    Thanks for the tip, but it seems that it doesn’t work anymore, even with the 6.77 version :((

    I get an error message : “Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.”

    It doesn’t work even when I try many times and with all the codes you gave us…

    Is there another way to do it?

    1. Hello Mar,

      – Download the 6.77 version zip file into your Laptop/Desktop.
      – Unzip it and open “constants.php” in your code editor
      – Make necessary changes in “constants.php” and save it.
      – Zip the plugin folder and upload the cracked version in your WordPress site.
      Now you don’t have to edit the plugin file(s) from your WordPress dashboard as the code is already in place.

      I hope it’ll help. Thanks

  4. Hi!

    Just tried it. It only works if you edit the code of the constants.php file locally on your computer and then upload the .zip directory (as described in the comment from November 12, 2019).
    Thank you! 🙂

  5. Bhai you are awesome, i tried 2-3 websites saying same thing but they were fake people, they had provided wrong version plugin but after reaching here i got my work done. you have saved my life as i had taken backup with all in one wp and deleted my website and my backup was 2.5GB and i had no other option to restore my website again. Thank You so much from bottom of my heart brother. Keep growing, god bless you always.

  6. Hello i follow your advise and now i have 30Gb, but when i can upload the file (579mb) the plug in told me agai that i can upload maximum 512mb..
    How can fix this problem?
    many thanks

  7. Cost me the whole afternoon. Now i found out that you must change constants.php before activating the plugin. Missed that in your instructions. But now it works wonderfully! Thanks!

  8. Thank you Tawfiqur – i had an export file of my old website and i needed to open it in a Local editor for reference, but was stuck on upload size, even though there was no uploading happening because everything was local. i tried various methods from various sites, but yours is the only one that worked easily. awesome!

  9. Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

  10. I got this error when clicking on the Update file.

    Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

  11. Hi, thanks.

    I am importing a backup, but the upload went stuck on 90.65% (without any error).
    What do I have to do?


  12. Need help.

    I have tried to change the file constans.php using notepad. After that i have uploaded the zip file and it’s giving me below error. I edited file using notepad. Can i change using any other editor?

    Unpacking the package…

    Installing the plugin…

    The package could not be installed. No valid plugins were found.

    Plugin installation failed.