How to Increase the Maximum File Upload Size in WordPress

by Montel Anthony

Navigating WordPress maximum file upload limits ranging between 2MB to 150MB depending on hosting settings can be challenging for website owners. Knowing how to increase their maximum file upload size in WordPress can be crucial in optimizing their media upload capabilities and expanding media upload capacities for their site.
Discovering methods of increasing WordPress upload size can greatly increase a website’s functionality, from tweaking.htaccess and php.ini files to using plugins – here we outline practical steps you can use to modify upload sizes in WordPress effectively, making sure it meets your multimedia requirements.

Checking Your Current Maximum Upload Size

Step-by-Step Guide to Check Your Current Maximum Upload Size in WordPress

  1. Navigate to the WordPress Admin Dashboard
    • Access your WordPress site’s admin panel by logging in with your credentials.
    • Once logged in, locate the ‘Media’ section on the left-hand sidebar and select ‘Add New’.
  2. Identify the Maximum Upload File Size
    • Scroll down to the bottom of the ‘Add New’ page within the Media section.
    • Here, you will see the current maximum upload file size displayed. This information is typically shown in megabytes (MB).
  3. Alternative Methods to Check the Upload Size
    • For users who need to check or adjust the maximum file upload size via code, you can add specific PHP code to your theme’s functions.php file or directly modify the php.ini file in your WordPress root directory.
    • Insert the following line in your functions.php file to display the max upload size: function max_upload_size_info() {  echo '<p id="max-upload-size">Max upload size: ' . wp_max_upload_size() . '</p>';}
    • Alternatively, to check via php.ini, add or edit this line: upload_max_filesize = 64M
  4. Checking in a Multisite Environment
    • If operating a WordPress multisite, navigate to the network settings where you can find or set the upload limits for different sites within your network, depending on server settings.
  5. Advanced Users: Checking via Server Configuration
    • For those with access to server management tools like Virtualmin, navigate to the PHP-FPM configuration under your virtual server settings to adjust and check the post_max_size and max_upload_filesize.

By following these steps, WordPress site administrators can easily verify and manage the maximum file upload size, ensuring that the site’s media upload capabilities meet their specific needs.

Method 1: Modify the .htaccess File

To increase the maximum file upload size in WordPress via the .htaccess file, follow these precise steps:

Step-by-Step Instructions

  1. Locate the .htaccess File
    • Access the WordPress root directory, typically found at public_html.
    • Use a file manager provided by your hosting service or connect via FTP.
  2. Edit the .htaccess File
    • Open the .htaccess file with a text editor.
    • Scroll to the bottom of the file to ensure any new code doesn’t interfere with existing settings.
  3. Insert Code to Increase Limits
    • Add the following lines at the end of the .htaccess file: php_value upload_max_filesize 64M
      php_value post_max_size 128M
      php_value memory_limit 256M
      php_value max_execution_time 300
      php_value max_input_time 300
    • These settings adjust the maximum upload file size (upload_max_filesize), the maximum size for all POST data (post_max_size), the script memory limit (memory_limit), and the maximum execution and input time (max_execution_time and max_input_time).
  4. Save and Upload
    • After entering the code, save the changes.
    • If using FTP, upload the modified .htaccess file back to the server.
  5. Verify Changes
    • Revisit your WordPress admin dashboard to check if the upload size has increased as expected.

Important Notes

  • Backup First: Always make a backup of the .htaccess file before making any changes.
  • Hosting Restrictions: Some shared hosting environments restrict direct modification of the .htaccess file. If these changes do not work, contact your hosting provider for assistance.

By following these steps, you can effectively increase the maximum file upload size in WordPress, allowing for larger files to be uploaded to your site. This adjustment is crucial for sites needing to handle large media files or data uploads.

Method 2: Update the php.ini File

Step-by-Step Instructions to Update the php.ini File

  1. Locate or Create the php.ini File
    • Access the WordPress root directory. This is usually found within the public_html folder.
    • Search for the php.ini file. If it does not exist, create a new file named php.ini.
  2. Modify the php.ini File
    • Open the php.ini file using a text editor.
    • Add or modify the following lines to set the new limits: upload_max_filesize = 64M
      post_max_size = 128M

  3. Utilize cPanel for Modifications
    • If direct access to the file is challenging, use the MultiPHP INI Editor in cPanel to make these changes.
    • Navigate to the MultiPHP INI Editor, select your domain, and adjust the upload_max_filesize and post_max_size settings accordingly.
  4. Restart the Server
    • After saving the changes, restart your server to ensure the new settings take effect.
    • This step is crucial as changes will not apply until the server has been restarted.
  5. Backup Your Website
    • Before making any changes, ensure you have a complete backup of your WordPress site.
    • This precaution helps to restore the original state in case any issues arise during the update process.
  6. Verify the Changes
    • Recheck the maximum file upload size in your WordPress dashboard to confirm that the updates are successfully applied.

By following these steps, WordPress users can effectively increase their maximum file upload size, enhancing their site’s media handling capabilities.

Method 3: Use a WordPress Plugin

Step-by-Step Instructions to Increase Maximum Upload File Size Using WordPress Plugins

  1. Choose the Right Plugin
    • For users seeking a straightforward solution, consider plugins like “Increase Max Upload Filesize” or “WP Increase Upload Filesize”. These plugins are developed specifically to handle larger file uploads by altering the server settings directly from the WordPress dashboard.
  2. Installation and Activation
    • Navigate to the ‘Plugins‘ section in your WordPress dashboard.
    • Click on ‘Add New‘ and search for the plugin by name.
    • Install and then activate the plugin.
  3. Configuring Plugin Settings
    • Once activated, go to the plugin settings, usually found under the ‘Settings‘ tab or directly on the plugin’s settings link.
    • Enter the desired maximum file upload size in megabytes (MB).
  4. Applying Changes
    • After configuring your desired upload limits, save the changes.
    • The plugin will automatically adjust the settings to increase the upload size.
  5. Testing the New Upload Limit
    • To ensure the new settings are effective, try uploading a file larger than the previous limit but within the new limit set by the plugin.
    • Check for any errors and ensure the file uploads successfully.

Common Plugins and Their Features

  • Big File Uploads: Known for simplifying large file uploads and resolving server timeout issues. Compatible with various hosting providers like Bluehost and Siteground.
  • CodePopular’s Plugin: Automatically detects and adjusts the upload limits set by WordPress and the hosting provider. It also allows for an increase in execution time, making it versatile for different server environments.

Troubleshooting Plugin Issues

  • FAQ and Support: Most plugins provide a FAQ section or direct support to assist with common issues.
  • Check Compatibility: Ensure the plugin is compatible with your WordPress version and hosting server settings.
  • Server Limitations: Be aware that some server-imposed limits cannot be altered by plugins. If issues persist, contacting your hosting provider may be necessary.

By following these steps and choosing the right plugin, WordPress users can effectively increase their site’s maximum file upload size, enhancing functionality and user experience.


Navigating through the steps required to increase WordPress’s maximum file upload size reveals key practices for website enhancement. From customizing server files such as.htaccess and php.ini to finding appropriate WordPress plugins, we explored numerous strategies to overcome default upload limitations. Applying these tactics successfully not only increases media handling capacity but also enriches user experience significantly – understanding these adjustments makes your content management system more flexible, accommodating more media formats than before.

Optimizing WordPress site upload speeds doesn’t end here; rather it opens doors for further exploration and customization, leading to advanced site management strategies and user engagement tactics. While changing server settings or installing plugins might provide immediate solutions, with continued innovation within WordPress community prompting continuous analysis for emerging tools or practices; welcoming them can ensure your WordPress website continues meeting both creator’s needs as well as audience ones; ultimately providing growth and innovation within an expanding digital universe.


How can I modify the maximum file upload limit in WordPress?

To adjust the maximum file upload size on a WordPress Multisite network, go to the Network Admin dashboard, select the Settings tab, and then click on Network Settings. Scroll to find the ‘Max Upload File Size’ field and change it to your desired limit.

What steps should I take to increase the maximum file upload size in the All-in-One WP plugin?

To increase the file upload size in the All-in-One WP plugin, you need to locate and edit the php.ini.hbs file within the conf/php/ directory of your site. After updating the ‘upload_max_filesize’ value, make sure to stop and restart your site so the changes take effect.

What is the process for uploading large files to WordPress when server access is not available?

To upload large media files to WordPress without server access, you can use the Big File Uploads method. Firstly, connect to your website via FTP to upload the media file. Secondly, install the “Add From Server” plugin on your WordPress site. Finally, use the plugin to import the uploaded media file into your WordPress library.

How do I alter the upload_max_filesize setting?

To change the ‘upload_max_filesize’ setting, you need to access and edit your php.ini file. Locate the ‘upload_max_filesize’ line and increase its value. You may also want to adjust other related limitations to ensure smooth uploads. After saving your changes, the previous error related to file size should be resolved.

Related Posts

Leave a Comment

* By using this form you agree with the storage and handling of your data by this website.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.