How to Increase Maximum Upload File Size in WordPress

How to Increase Maximum Upload File Size in WordPress

4 minutes read

Tutorials

If you are learning WordPress, learning How to Increase Maximum Upload File Size in WordPress will be helpful.

If you have a very low upload limit size, it will ultimately limit you from uploading large files to WordPress, including plugins and themes. It would indeed be an obstacle to building a heavy website. Therefore, one should immediately increase the WordPress upload size limit.

Maximum Upload Size in WordPress

When you upload big files, your WordPress server uses a lot of resources. It’s important to prevent your website from frequent server timeouts. So, the hosting provider limits the upload size between 4 MB to 128 MB at the server level.

Check the Current Maximum Upload Size in WordPress

Before we teach you How to Increase Maximum Upload File Size in WordPress, Let’s know How you can Check the Current Maximum Upload Size in WordPress.

Here are the steps you need to follow:

  • Login to WordPress Dashboard.
  • Navigate to Media >> Add New.
  • Now, you can easily see Current Maximum Upload Size.

In the above screenshot, it shows that the maximum upload file size is 64 MB which the default value set by WordPress.

Learn How to Increase Maximum Upload File Size in WordPress

We hope you are finally awared of the Maximum Upload Size in WordPress and How to Check the Current Maximum Upload Size in WordPress.

Now, we can get into learning How to Increase the Maximum Upload File Size in WordPress. However, you must know that the given method entirely depends on how the default configuration set by the Hosting Service. Therefore, some strategies may not work for your WordPress website.

Here are some easy methods you can follow to Increase Maximum Upload File Size in WordPress.

1. Using .htaccess file

This method is for the readers whose web server runs on Apache. You can edit and update your .htaccess file in order to Increase the Maximum Upload File Size in WordPress.

First, you need to edit the .htaccess file. For this, you should access your server using cPanel or FTP.

Now, you can search the .htaccess file inside the root folder. To make things clear, it’s the folder that has wp-config.php inside it.

Note: You need to download a copy of the file to your local computer before making any modifications so that you have a secure backup in the event something goes wrong.

After you finish backing up your website, add the following code to the .htaccess file.

php_value upload_max_filesize 32M
php_value post_max_size 64M
php_value memory_limit 128M
php_value max_execution_time 300
php_value max_input_time 300


There are three PHP directives that are responsible for how PHP handles uploads, according to the PHP manual:

  • upload_max_filesize: maximum upload limit for files.
  • post_max_size: maximum upload limit that will be handled in a POST request.
  • memory_limit: memory which is allocated for PHP.

Every value uses M rather than MB. PHP is handling its guidelines in such a way.

2. WordPress File Modification

If the given method doesn’t work for you, we recommend following this method. Within your WordPress files, you may paste the following three lines. These lines may be entered in wp-config.php, functions.php, etc.

@ini_set( ‘upload_max_size’ , ’25MB’ );
@ini_set( ‘post_max_size’, ’27MB’);
@ini_set( ‘memory_limit’, ’30MB’ );

3. Using WordPress Plugin

Playing with the codes isn’t a thing a normal person would do. Therefore, we have found an easier solution for you. We will be using an easy WordPress Plugin that will surely help you execute How to Increase Maximum Upload File Size in WordPress in this method.

Here are the steps you need to follow:

  • Go to WordPress Dashboard.
  • Navigate to Plugins >> Add New.
  • Finally you can set the maximum upload size limit and Save Changes.

4. Contact Your Hosting Provider

Finding help from your hosting provider is one of the fastest options when you have trouble uploading files and file size constraints. Enhancing the upload limit is an essential duty for technology support. This allows most hosting providers to resolve this problem swiftly.

The most accessible approach to understanding the problem is getting error logs for your website from your hosting provider. Check the records when you attempted to import the backup. You’ll notice whatever limit you met, and increasing it will solve the problem.

Sum Up

We have discussed many alternative techniques in this post that you may use to increase your WordPress site’s maximum upload file size limit.

We hope this detailed guide helped you to understand How to Increase Maximum Upload File Size in WordPress. And for the visitor who asked us to write an article on How to tell if a site is WordPress. We have a dedicated article on this.

If you enjoyed this post, subscribe to our WordPress video tutorials on YouTube Channel. Remember to follow us on Pinterest.

We accept any type of suggestion from the visitors because it always motivates us to improve. Feel free to comment below.

What do you think?

Leave a Reply

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

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Exit mobile version