Maximum Upload File Size

How to Increase Maximum Upload File Size in an All-in-One WP Migration Plugin

The All-in-One WP Migration plugin is a popular tool for managing import and export in WordPress. It simplifies the migration process, but there’s one common issue: the default maximum upload size is often set too low (usually 128 MB), which causes uploading issues. If your backup file is larger than the set limit, you won’t be able to import any files.

In this guide, you’ll learn different step-by-step ways to do this. 

Methods to Increase Maximum Upload File Size

We’ll cover several ways to increase the maximum file upload size:

  1. Using a plugin extension
  2. Editing the functions.php file
  3. Adding code to .htaccess
  4. Changing php.ini settings
  5. Increasing server upload limits via hosting

1. Use the All-in-One WP Migration Unlimited Extension

The easiest way to increase the upload limit is to use the Unlimited Extension for All-in-One WP Migration. This extension removes the file size limit entirely.

Steps to Install the Extension:

  1. Download the Extension
    • Go to the official website of All-in-One WP Migration.
    • Purchase and download the Unlimited Extension.
  2. Install the Extension
    • In your WordPress dashboard, go to Plugins > Add New.
    • Click Upload Plugin and upload the extension file (usually in .zip format).
    • Click Activate after installation.
  3. Verify the Upload Limit
    • Go to All-in-One WP Migration > Import.
    • You should see that the upload limit has been removed.

Note: This method is straightforward, but the extension is a paid feature. If you prefer free options, try the following methods.

2. Edit the functions.php File

You can increase the upload limit by adding a code snippet to your theme’s functions.php file.

Steps to Edit the functions.php File:

  1. Access the Theme Editor
    • In your WordPress dashboard, go to Appearance > Theme File Editor.
    • On the right-hand side, click functions.php.

Add the Code
Add this code to the bottom of the file:
php
Copy code
function increase_upload_size() {

    @ini_set( ‘upload_max_size’, ‘512M’ );

    @ini_set( ‘post_max_size’, ‘512M’ );

    @ini_set( ‘max_execution_time’, ‘300’ );

}

add_action( ‘init’, ‘increase_upload_size’ );

  1. Save Changes
    • Click Update File to save your changes.
  2. Check the New Limit
    • Go to All-in-One WP Migration > Import and check if the limit has increased.

This method works if your theme allows direct edits, but changes may be lost after theme updates.

3. Edit the .htaccess File

The .htaccess file controls server settings, including upload limits.

Steps to Edit .htaccess File:

  1. Access File Manager
    • Log in to your hosting control panel or use an FTP client.
    • Navigate to the root directory of your WordPress site (usually public_html).
  2. Open .htaccess
    • Find the .htaccess file and open it for editing.

Add the Code


Add this code at the bottom of the file:

php_value upload_max_filesize 512M

php_value post_max_size 512M

php_value max_execution_time 300

php_value max_input_time 300

  1. Save the File
    • Save the file and close the editor.
  2. Check the Upload Limit
    • Go back to the All-in-One WP Migration plugin and check if the limit has increased.

Note: If your server doesn’t allow .htaccess overrides, this method may not work.

4. Edit the php.ini File

The php.ini file is used to configure PHP settings, including file upload limits.

Steps to Edit php.ini File:

  1. Access Your Server
    • Log in to your hosting control panel or FTP to access your site files.
  2. Find or Create php.ini
    • In the root directory, look for the php.ini file. If it doesn’t exist, create a new one.

Add the Code


Add this code to the php.ini file:

upload_max_filesize = 512M

post_max_size = 512M

max_execution_time = 300

  1. Save Changes
    • Save the file and restart your server if needed.
  2. Check the New Limit
    • Go to your WordPress dashboard and check the new upload limit.

5. Change Server Settings via Hosting Panel

Some hosting providers make it easy to increase the upload limit directly from the control panel.

Steps to Increase via Hosting Panel:

  1. Log in to Your Hosting Account
    • Go to your hosting provider’s control panel (e.g., cPanel, Plesk).
  2. Find PHP Settings
    • Look for an option like PHP Settings or MultiPHP INI Editor.
  3. Edit Upload Limits
    • Set upload_max_filesize and post_max_size to a higher value (e.g., 512M).
    • Save your changes.
  4. Check the Upload Limit
    • Open the All-in-One WP Migration plugin to confirm the new limit.

This method is simple if your hosting provider supports easy configuration changes.

Conclusion

Increasing the maximum upload file size in the All-in-One WP Migration plugin is essential for smoothly importing larger backups. You can use the Unlimited Extension for an easy fix or try free methods like editing the functions.php, .htaccess, or php.ini files. You can also increase the limit directly from your hosting control panel.

Following these steps, you can handle large backups and migrate your WordPress site without issues. Choose the best method for you and enjoy a smoother website migration process!