WORDPRESS MIGRATION

How to Increase the All-in-One WP Migration Upload Limit

Increase All-in-One WP Migration Upload Limit

If you’re unable to import a WordPress website because of the All-in-One WP Migration plugin upload limit, this guide will walk you through several proven solutions. Learn how to increase the maximum upload size by updating PHP configuration settings, modifying plugin files for older versions, adjusting server limits, and troubleshooting common migration issues to successfully import larger website backups.

Tech Prime Web

Key Insight

In most cases, the upload limit is not caused by the All-in-One WP Migration plugin itself. Instead, it’s typically determined by your hosting provider, PHP configuration, or server settings.

Why Does the All-in-One WP Migration Upload Limit Exist?

The upload limit is designed to help prevent server overload and ensure reliable file uploads. Depending on your WordPress hosting environment, the maximum upload size may be limited by the plugin, your web server, or your PHP configuration.

Common factors that affect the upload limit include:

  • PHP Upload Limits (upload_max_filesize and post_max_size)
  • Server Memory Limits (memory_limit)
  • PHP Execution Time (max_execution_time)
  • Hosting Provider Restrictions
  • All-in-One WP Migration Plugin Version

Before making any changes, it’s important to identify which of these limitations is preventing your website backup from importing successfully.

Method 1: Increase the Upload Limit by Editing the Plugin Constants File (Version 6.77 and Earlier)

If you’re using All-in-One WP Migration version 6.77 or earlier, you can increase the maximum upload size by editing the plugin’s constants.php file. This method modifies the plugin’s default upload limit and allows larger WordPress backup files to be imported.

Important: This method only applies to version 6.77 or earlier. Newer versions of the plugin use a different architecture, so this modification will no longer work.

Step 1: Download Version 6.77 (If Needed)

If you’re using a newer version of the plugin, you’ll first need to install All-in-One WP Migration version 6.77 or an earlier release.
You can download the version 6.77 here at, all-in-one-wp-migration.6.77

Step 2: Open the Constants File

Navigate to the following file:
/wp-content/plugins/all-in-one-wp-migration/constants.php

Step 3: Locate the Upload Limit Constant

Open the constants.php file and locate the following code:

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

Replace it with:

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

After saving the file, the maximum upload limit will increase to approximately 16 GB, allowing you to import significantly larger WordPress backup files.

Note: Plugin updates may overwrite this change. If you update All-in-One WP Migration, you’ll need to reapply the modification or consider one of the alternative methods covered later in this guide.

Alternative Methods to Increase the Upload Limit

If you’re using a newer version of All-in-One WP Migration, modifying the constants.php file is no longer supported. Fortunately, there are several other ways to increase the maximum upload size depending on your hosting environment and server configuration.

Method 2: Increase the PHP Upload Limits

Most WordPress websites inherit their upload limits from PHP. By increasing the following settings, you can often resolve upload size restrictions without modifying the plugin.

upload_max_filesize = 2048M
post_max_size = 2048M
memory_limit = 4096M
max_execution_time = 300
max_input_time = 300

These values can typically be updated through your server’s php.ini file, your hosting control panel (such as cPanel or Plesk), or by contacting your hosting provider.

Tip: Many managed WordPress hosting providers can increase these limits for you.

Method 3: Increase the Upload Limit Using the .htaccess File

If your hosting provider uses Apache, you may be able to increase the upload limit by adding the following directives to your .htaccess file.

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

After saving the file, clear your website cache and check the All-in-One WP Migration import screen to verify the updated upload limit.

Important: Some hosting providers don’t allow PHP directives in .htaccess. If your website returns a 500 Internal Server Error, remove the code immediately and try another method.

Method 4: Increase the Upload Limit Using php.ini

If you have access to your server’s php.ini file, you can permanently increase the upload limits by updating the following values:

upload_max_filesize = 2048M
post_max_size = 2048M
memory_limit = 4096M
max_execution_time = 300
max_input_time = 300

Save the file and restart PHP or your web server if required. This is one of the most reliable methods for VPS and dedicated hosting environments.

Method 5: Increase the Upload Limit Using wp-config.php

Some hosting environments allow PHP configuration values to be adjusted within the wp-config.php file.

Add the following code just above the line that reads “That’s all, stop editing!”:

@ini_set( ‘upload_max_size’ , ‘2048M’ );
@ini_set( ‘post_max_size’, ‘2048M’);
@ini_set( ‘memory_limit’, ‘4096M’ );
@ini_set( ‘max_execution_time’, ‘300’ );

Note: This method isn’t supported by all hosting providers.

Method 6: Contact Your Hosting Provider

If none of the previous methods work, contact your hosting provider and request an increase to your PHP upload limits.

Ask them to review and update:

  • upload_max_filesize
  • post_max_size
  • memory_limit
  • max_execution_time
  • max_input_time

Most managed WordPress hosts can make these changes quickly.

Common Upload Errors

If you’re still unable to import your website, you may encounter one of these common errors:

  • File exceeds the maximum upload size.
  • HTTP 500 Internal Server Error.
  • PHP Memory Limit Exhausted.
  • Upload timed out before completion.
  • Import process freezes or stops unexpectedly.

These issues are typically related to PHP configuration, hosting limitations, or server resource restrictions.

Troubleshooting Tips

Before trying another import, verify the following:

  • Your PHP upload limits have been updated.
  • Your website has sufficient available disk space.
  • PHP memory limits are adequate.
  • You’re using a compatible version of the plugin.
  • Conflicting plugins are temporarily disabled.
  • Your hosting provider doesn’t impose additional upload restrictions.

Final Thoughts

Increasing the All-in-One WP Migration upload limit is usually a straightforward process once you identify what’s causing the restriction. Whether you update the plugin constants (for older versions), modify your PHP configuration, or work with your hosting provider, these methods can help you successfully import larger WordPress website backups and complete your migration with confidence.

Frequently Asked Questions

The default upload limit varies depending on your hosting provider and PHP configuration. Many users encounter limits of 512 MB or less, which can prevent larger WordPress backups from being imported.
The default upload limit varies depending on your hosting provider and PHP configuration. Many WordPress websites have a default limit of 512 MB or less.
No. This method only works with All-in-One WP Migration version 6.77 and earlier. Newer versions require alternative methods to increase the upload limit.
Which PHP settings control the upload limit?

  • upload_max_filesize
  • post_max_size
  • memory_limit
  • max_execution_time
  • max_input_time

Increasing these values can help support larger file uploads.

Yes. You can often increase the upload limit by updating your PHP configuration, editing the php.ini or .htaccess file, or asking your hosting provider to adjust your server settings.
Yes. If you modify the plugin’s core files, those changes may be overwritten when the plugin is updated. Server-level configuration changes are generally a more permanent solution.

Open the All-in-One WP Migration plugin and navigate to the Import page. The current maximum upload size is displayed near the upload area.

If the upload limit doesn’t change after trying these methods, contact your hosting provider. They can review your server configuration, increase PHP limits, or identify any hosting restrictions affecting file uploads.
Tech Prime Web

About Tech Prime Web

We help businesses grow with data-driven SEO, AEO and digital marketing strategies that improve visibility, increase traffic and generate real results.

Share This Story, Choose Your Platform!