How to Increase the Maximum File Upload Size in WordPress (Solved)

Hey, are you having trouble with media upload size and trying to increase the maximum file upload size? You have to Increase the Maximum File Upload Size in WordPress. Possibly you have a warning  “Your WordPress exceeds the maximum upload size for this site?”  That means your media uploader is limited.

By default, maximum file upload size ranges from 2MB to 150MB depending on your web host provider.

To confirm your current Maximum File Upload Size in WordPress, Please go to Admin Panel > Media > Add New. Finally, you can find what is your current max upload size at the bottom part of the page shown in the screenshot.

Increase the Maximum File Upload Size in WordPress - Lets Learn Now

How to Increase the Maximum File Upload Size in WordPress:

How to Increase the Maximum File Upload Size in WordPress (Solved)

When the current limit matches with your demand, then leave it. If it does not match, what can we can do here? Oh, there are so many ways to fix it. So don’t fret about it. I will now write some excellent methods to fix it.

Note: Here are the requirements you will need to complete this process
1. Access To WordPress Deshabord
2. Access To Hosting Control Panel

Solution 1. Edit Your Theme’s Functions.php file:

I think this is an easy way to solve this issue, copy following codes and paste them into functions.php. This is the easiest way to Increase the Maximum File Upload Size in WordPress.

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

Solution 2. Editing.htaccess

You can also try to increase by modifying your .htaccess method in the Root directory. Edit the .htaccess file in your WordPress site’s root folder and add the following code:

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 1000
php_value max_input_time 1000
php_value max_input_vars 5000

Sometimes, many users report to us that 64 does not work, so you can also try 10MB (It may work). This is also another popular way to Increase the Maximum File Upload Size in WordPress. Please check the next method.

Solution 3. Create or Edit an existing PHP.INI file:

Note: Because of security purposes, it sometimes may be hidden. So do not uncheck “Show hidden files.
PHP.INI is the configuration of a server. Now, go to hosting Root Directory> File Manager and find out a file which is called php.ini or php5.ini. If the data do not exist, create a file as php.ini and open php.ini with any text editor. Once keep and modify the code according to your requirement.

How to increase maximum file upload size in WordPress 3

upload_max_filesize = 25MB
post_max_size = 27MB
memory_limit = 30MB
max_input_vars = 3000

Solution 4. Directly From The Hosting Provider Option:

Some hosting providers by default built-in an option to users can quickly change the limit of file upload size. Go to your server, then try to figure out where memory limit option is built. So now change it according to your demand.

How to increase maximum file upload size in WordPress 2

Solution 5. Changing maximum upload size in cPanel:

It would be great; if your hosting provider allows you to access cPanel, then you will be able to modify increase or decrease your Media Uploader. Now, go to cPanel and look Select PHP Version in the Software section.

How to increase maximum file upload size in WordPress 4

Update the post_max_size and upload_max_filesize values according to your need.

How to increase maximum file upload size in WordPress 5

Click on “Switch to PHP Options.” then you will see

How to increase maximum file upload size in WordPress 6

Finally, click on save to save the changes.

Solution 6. Modifying wp-config.php file:

This one is one of the great ways to increase maximum file upload limit than any other methods. First of all, log in your website via FTP or SSH and look for wp-config.php which generally located in the root of your site.

How to increase maximum file upload size in WordPress 7

Open the file with any text editor so that you can keep your necessary code for changing the upload limit.

define( 'WP_MEMORY_LIMIT', '128M' );

If you meet “Internal server error” message after using the above method, that means you cannot use this method. So you should go for another method. Since there is showing an error message it’s more likely to your server is running PHP in “CGI mode,”

Solution 7. Plugin: Increase Max Upload Filesize:

I believe this the most comfortable way from all possible approaches. Most of the users like Increase Max Upload Filesize instead of using other methods because of this plugin Very Lightweight- Only 2KB and user-friendly. Interesting, This plugin increase upload size limit up to 250Mb and more.

Now, go to your WordPress dashboard on the left side you can see Plugins> add new
And search Increase Max Upload Filesize then click on install now. Therefore, active the plugin. Or check the article How to install a WordPress Plugin in different ways.

Plugin Link: Increase Max Upload Filesize

How to increase maximum file upload size in WordPress 9

After that, a function will be available in WordPress admin Menu and click increase Upload Maximum File Size from admin menu then you will get a page like this.

How to increase maximum file upload size in WordPress 10

Solution 8. How to Increase the Maximum File Upload Size in WordPress:

Hopefully, You have understood the ways of increasing the maximum file upload size. If you don’t want to change yourself, please contact your Hosting provider. If you use shared hosting this technique might not work, this is why Let’s Learn Now always highly recommend you contact your Hosting Provider to increase the limit for you. 

You may also read our previous post: How to use WordPress Importer – WordPress Plugin

For your kind information, if you would like to create a website from scratch, please visit the dedicated article about How to create a website using WordPress. We have tried to explain from the beginning for every WordPress user.

 

Summary
Review Date
Reviewed Item
Increase the Maximum File Upload Size in WordPress
Author Rating
51star1star1star1star1star
LLN Team

About The Author : LLN Team

We are LLN Team promise you to provide you useful information about website and blog creation. We will focus on WordPress and other essential needs. Keep browsing Lets Learn Now. Cheers

Leave a Reply

Your email address will not be published.

Please post a relevant comment and make the conversion informative.