How to Expand Maximum Upload File Size In WordPress


Sometimes you may encounter an error while uploading a large file to the WordPress media library. This error briefly says that your file “exceeds the maximum upload size for this site”. We will see how to increase maximum upload file size in WordPress. 

Why does this problem occur? Sometimes shared hosting providers set a limit on the file size that you can upload to WordPress. This is to save resources and memory. Often these limits are too restricting. For example, if the maximum upload file size is 5MB then it becomes difficult to upload high-resolution photos and even short videos.

Some web hosts do not allow customers to change server-level settings. In such a case, you can not really do anything about the file size limit other than reaching out to your host.

Some web hosts, on the other hand, support custom user settings in a limited way. If this is the case then you can try almost all the options mentioned below to increase maximum upload file size in WordPress.

How to Know Maximum Upload File Size in WordPress

It is very easy to know the maximum upload file size for your WordPress installation. Just add an image block in your post. Click on Media Library>> Upload Files. 

Media Library Maximum Upload File Size

You will see the maximum upload file size limit for your WordPress site in the bottom line. 

maximum-upload-file-size

We have narrowed down the 5 best ways to change the max file upload size. 

1. Use A WordPress Plugin

The simplest way to go about changing the max file size is to use this WordPress plugin: “Increase Maximum Upload File Size

Increase-Maximum-Upload-File-Size

The plugin also shows you current limits set by your hosting provider. 

increase-maximum-file-upload-size-plugin-screenshot

Note that this plugin cannot change the server adjusted limits. You will need to contact your web host if such limits are in place.

You can also try one of the following methods if you have access to respective files.

2. PHP.ini method

In this method, you need to add the following code to php.ini file of your WordPress. You can find this file in the WordPress root folder which you can access through FTP or cpanel. 

Add the following code to the php.ini file to increase the maximum file size limit to 100MB: 

You can change this value as per your convenience. 

3. User.ini

Locate the user.ini file in your WordPress root directory and insert the following code in it: 


User.ini file affects the PHP settings of a single directory. Each directory may have a user.ini file. 

If this method does not work, try the htaccess method. 

4. Htaccess method

One of the most cited ways to increase maximum upload file size in WordPress is to edit the .htaccess file. This file can be found in the WordPress root directory. 

You need to add the following code to your .htaccess file:

5. Ask Your Web Host

This should be the first thing you should try. Nowadays, contacting web hosts has become easier and quicker. You can reach out to your web host through Live chat, email and other support options available.

You may negotiate a deal with your hosting provider if you regularly need to upload large files. The response may change from host to host.


 

We hope this quick article helped you tackle the issue. At Nestify, the maximum upload file size is 100 MB. You can enjoy spacious SSD storage with Nestify. Check out our plans here. If you have any queries, please let us know in the comments. 

Leave a Reply