[AIOWP] | Increase 512mb upload limit to 2000000 TeraByte for All in one WP migration plugin

Increase 512MB Upload Limit to 20000000 TB for the All-In-One WordPress Migration plugin.

Steps to increase All in one wordpress migration upload limit-

  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 won’t 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.

  13. If you need help in this regard, you can also participate in our forums. https://www.aozata.com/community/all-in-one-wordpress-migration/




Articles you may like


  1. oli

    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.

    1. Muthali Ganesh

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

      1. Vicky Gupta

        still not working

    2. Hector

      Your comment is awaiting moderation.

      I’m having the same problem, after some research, I believe that the problem is that this is only working on version 6.77 and earlier, but now this is no longer available,

      The earliest version you can get is version 7.5 and up, if anyone knows where we can get the earlier version of the plugin, please share,

      For now, I think that you will need to buy it at https://servmask.com/products/unlimited-extension

      I also found it for a better price at https://www.nynology.com/downloads/all-in-one-wp-migration-nynology/

  2. Angel Asenov

    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:


    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

    1. Muthali Ganesh

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

    2. PixDraft

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

    3. Joel

      thank you it works well with the old version of

  3. Taskit

    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.

  4. Moxet Khan

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

    1. Muthali Ganesh

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

  5. Dennis

    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.

    1. jag

      Perfect. Thank you!

  6. Sam

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

  7. diablo

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

    1. Muthali Ganesh

      Use the old version (download link is here)

  8. vincent

    thanks A LOT,use only old version guys.

  9. Eduardo

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

    1. Muthali Ganesh

      Thank you!

  10. Senne

    Thanks so much! This still works, but indeed only with the older version. It’s a great workaround!

    1. Muthali Ganesh

      Thanks! Glad this was of help to you!

  11. Enrique

    Works!!! great post!! Thank you.

  12. Favio

    Muchas gracias!!!!!! me ayudo bastanteeeee

  13. Shai Shmuel

    Awesome! works for me, thank you very much.

  14. johnson

    This method no longer works, it does not change the limit anymore

    1. Muthali Ganesh

      Did you download the older version of the AIOWP plugin?

  15. Paul

    This worked great until the most recent update. Now, there’s no way around the limit.

  16. MessiahX

    hi guys!
    I have installed the latest version available and installed the plugin extension (https://import.wp-migration.com/), then in the constants.php file (public_html/wp-content/plugins/all-in-one-wp-migration/constants.php) change the variable to 30
    define (‘AI1WM_MAX_FILE_SIZE’, 2 << 30);
    and now I have a limit of 2GB;) I read in another place that worked like this in the new versions, installing that extension;) Try it.

  17. Gandhi

    In the latest version 7.7, Changing the max file size to ..2<<30 is not working. I am still getting the maximum upload file size is 40 MB. can you please guide?

    also I tired downloading the version 6.8 from the link provided by Angel Asenov. But this installing version 7.5.

      1. Abraham

        This worked for me. Just delete all last installations, install this and edit like the post says and it worked. No need the AIWP Import Plugin, just this. Thanks a lot!

      2. Khol

        Now is work!! Well done! congrats and thank you so much!!

      3. Shruti

        Thank You Very Much

  18. Tomasz

    For those who do not work and have already installed ai1m, go to ftp and find the “ai1m backup” folder in the plugins folder and delete it. then install the plug-in in the version your colleagues write about and edit it. then it should work.

  19. Seun

    This no longer even with all versions of plugins. Today 2020-01-08

    I managed to change to several terabytes but each I try to upload my 8GB file, it peg me down to 512MB. So sad. I guess we gonna have to buy their product. Note that I tried this with latest version down to 6.65 version each time. Problem remains

  20. Thiyagesh

    Thank you, you saved me bunch of time.

    and the extensions file link is not working and also not needed I think.
    Editing constants.php worked great!

  21. Salim Garcia

    Awesome!!! Thank you very much!!

  22. Ashwani Singh

    good i like it thank u

  23. José C Costa

    Tks!!! Fantastic. 10. Perfect. José Cláudio

  24. Chris

    If anyone could help me, I would REALLY appreciate it. So I downloaded the older version, went in and changed the code. When I imported it, it all came in. But when it came to setup the files, it would just hang and stay at 0%, After literally multiple hours of this, I stopped the process. It looks like my media and plugins were all imported. But there are no posts or pages. Any ideas? Did I do something wrong or is there an issue with Bluehost not letting me upload that many files? Thank you!

    1. Muthali Ganesh

      What is the size of the file you are trying to import?

Leave a Reply

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