Being unable to upload your favorite files of large sizes tin can block your creativity and expression limit.

That's why we went out to find the solution for you and everyone else facing this trouble.

In the commodity below, yous'll acquire how to increase the maximum file upload size in WordPress. You can use these methods and alter the maximum file upload size setting.

These methods give you lot complete freedom to mail whatsoever you want on your website without a hassle of technical hurdles. Doesn't that sound exciting?

Please continue reading to find out more.

Table of Contents

  • What is the Maximum File Upload Size in WordPress?
  • How to increase the maximum file upload size in WordPress?
    • one. Update .htaccess File
    • 2. Edit Functions.php File
    • three. php.ini Pick
    • four. Increase Upload Size in Multisite
    • 5. wp-config.php file
    • half dozen. Plugin Method
    • vii. Contact Hosting Provider
  • Determination

What is the Maximum File Upload Size in WordPress?

WordPress does non allow you lot to upload files that are bigger than 25MB.

However, this maximum upload file size also depends on the settings that the web host provides. It can range anywhere from 2MB to 150MB.

To know about your website's electric current maximum file upload size,

  • Navigate to WP Admin-> Media
  • Click on Add New push. There you will encounter the full upload size mentioned at the bottom of the page.
Maximum upload size in WordPress

Don't worry if information technology's less than you need. You tin always change it with the below-mentioned techniques for increasing the maximum file upload size in WordPress.

How to increase the maximum file upload size in WordPress?

WordPress allows you to customize information technology extensively. And then, you can change the maximum file upload size in your WordPress website as well.

Here's how:

1. Update .htaccess File

"htaccess" is a configuration file in Apache web servers. WordPress uses Apache, and PHP is set every bit an Apache module. So, if you want to make changes to the .htaccess file, follow the steps below:

  • Connect to the server through an FTP client.
  • Navigate to the folder where WordPress is installed.
  • Open up .htaccess file you lot find there using any code editor or notepad.
  • Add the post-obit lines.
Wordpress .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          

You are free to arrange the number as you prefer. Here, the maximum file upload size is set to 64Megabytes. Your maximum file upload size is now increased, allowing you to upload annihilation you want.

Before you lot make any changes to .htaccess, make certain you to backup your website.

ii. Edit Functions.php File

Sometimes information technology'southward hard to get access to the .htaccess file. In such cases, you can use the WordPress theme files. Look for the functions.php file of the website and brand the following changes.

To locate the functions.php file,

Go to Advent > Editor, in your Dashboard. You'll see the functions.php file in the correct hand side's panel and click information technology. Once the file is open in a text-editor add together the post-obit lines of lawmaking at the end. Do non forget to update the file.

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

These lines of codes set your maximum upload file size limit to 64 Megabytes.

Remember, if you change the theme for your WordPress site, the max upload size will return to its default values. Y'all will need to follow the aforementioned process equally in a higher place to edit the functions.php file then.

3. php.ini Option

You will detect a php.ini file in the root directory of your website. It is a file used to configure any application that runs on PHP. Sometimes this file might non be visible. In such a case, y'all can create your php.ini file and place it in the root directory.

php.ini for WordPress

Here's the code line that you can add together to the existing php.ini file or a new php.ini file.

                          upload_max_filesize = 25M post_max_size = 13M memory_limit = 15M          

Once yous have added the codes to the file, you tin again apply the SSH or FTP to upload the file in the root directory.

four. Increase Upload Size in Multisite

If you're a WordPress multisite user, you can change the maximum file upload size setting in Settings. However, yous can only increase the size to the limit allowed by server settings.

E.g., if your server limit is set to 5MB and you gear up 10MB in the network setting, information technology won't work. Only, if your server limit is ready to 20KB, network setting to 15MB, you tin can increase the file upload size to 20MB. To adjust the settings, follow these steps:
In the WordPress dashboard, Go to My sites > Network admin > Settings.

Upload setting in WordPress Dashboard
  • Check for " Max Upload file size ." Increase it as yous similar and " Save Changes."

5. wp-config.php file

At that place'southward another trick you can employ to increase the maximum file upload size in WordPress. For this, all yous need to do is access the WordPress configuration file.

  • Admission the WordPress root directory using SSH or FTP and locate the wp-config file.
locate the wp-config file
  • Open up the file in a text editor. Then, add the following code.
                          @ini_set( 'upload_max_size' , '20M' ); @ini_set( 'post_max_size', '13M'); @ini_set( 'memory_limit', '15M' );          
  • Relieve the changes, and that's it.

6. Plugin Method

Not everyone likes to code or work with website files using FTP or SSH. So, WordPress offers plenty of plugin options that tin quickly increase your maximum file upload size limit.

You can merely go to Plugins options in your Dashboard and search for plugins. Once you lot observe a suitable plugin, activate and install information technology. Nosotros recommend you to get the Max upload filesize plugin. This is a simple yet powerful plugin that does just what information technology needs to do. Information technology increases the maximum file upload size in WordPress without y'all facing any hassle whatsoever.

To install this plugin,

  • Go to Plugins in your WordPress Dashboard and search for "Max upload filesize plugin" in the search bar.
  • You'll come across the plugin ready to become installed. Click on install and once it's installed activate the plugin. Arrange the maximum file size setting in the Upload FileSize setting and you're practiced to get. Do not forget to save the settings.

Another popular examples are WP Uploads, Wp Limits, etc.

7. Contact Hosting Provider

Terminal simply not to the lowest degree, you can always choose your hosting provider to do this job.

Different spider web hosts provide dissimilar packages of services, including the provision to increase the file size upload. Cheque with your hosting service provider to know if they offer this service. If they do, your problem is solved. If non, y'all can e'er apply any of the options higher up. Nosotros recommend you to choose Bluehost for your hosting needs.

Conclusion

So, if you lot've always come beyond a problem where you couldn't upload your file because it's too large, we hope this article came to your rescue.

We accept listed all the methods on how to increment the maximum file upload size in WordPress. Choose the ane that fits your demand perfectly and enjoy edifice your website with complete freedom.

If you want to read more than useful manufactures regarding WordPress, you can accept a look at the following:

How to gear up fault establishing a database connection in WordPress

How to Disable User Registration in WordPress