The fact that you're reading this post means you have run into an issue while uploading files to your WordPress site. Simply don't worry, I am going to offering your more ane quick set up for this effect. "Exceeds the maximum upload size for this site" is a common consequence often experienced by professionals or web site owners while uploading an HTML file. Fortunately, you tin can increase your PHP maximum upload size to resolve this issue.

WordPress is the powerhouse of the net and can exist used for building and running whatsoever kind of personal or business site. If you still don't have your own website, consider it a sign to get one. Moreover, with the advanced tools and technologies, having a site is quite like shooting fish in a barrel at present. Get TemplateToaster and create your own website using its elevate and drop interface. Moreover, it also offers gear up-to-use WordPress Themes. Given this, creating your own site is only a matter of a couple of dragging and dropping.

What is PHP Maximum Upload Size?

By default, PHP allows a maximum file upload of 2 MB. The limit exists for security and efficiency purposes equally information technology prevents users from flooding your site with unnecessarily large media files.

Why increase PHP maximum upload size?

If you are not sure what the electric current maximum upload size is in your WordPress, you tin can cheque information technology by navigating to the WordPress admin panel> Media> Add New. You lot will run across the maximum upload size on the bottom of the screen. First of all, information technology is not a WordPress event. Resizing every file before uploading can exist a time-consuming chore. Therefore, y'all need to increase the upload size limit when necessary.

Fortunately, in that location are many ways to increase the upload file size limit in PHP every bit using any of the following explained methods. I am writing this guide to provide all possible solutions. Nonetheless, depending upon your web host some methods may not work. In that example, try contacting your web hosting provider. Let'due south go started.

How to Increase the WordPress Maximum upload file size?

It is of import to understand why this result happens in club to fix it. Many spider web hosting providers continue the limit low by default, and then it tin can exist your hosting provider's issue or it can be a server-level issue. With this article, I will try to explain various root causes of the upshot so you tin can figure out the right solution to set it. Here are some ways y'all tin can get about resolving the WordPress Maximum upload file size event. Permit's dig in-

Pick 1: Fix or Increase PHP Maximum Upload Size in a Multisite install

If you lot are running a multisite installation, you might desire to customize the upload limit for your site. However, you lot can simply gear up the limit simply if your server allows it. For case, if your server is fix to 20 MB then yous tin't exceed the limits over 20 MB from your network settings, Yet, If your server is set to 20 MB, and so you tin can set it up to 20 MB from your network settings. Follow the given steps-

Login to your WordPress admin console and navigate to My Sites> Network Admin> Settings.

Scroll down and double click the Max upload file size selection. Enter the value in KBs to increment the upload file size and click Salvage Changes to salve the changes.

That'southward it. Yous've successfully increased the upload size limit in a multisite installation.

Option 2: Ready or Increase PHP Maximum Upload Size using Web Hosting provider

If you do not experience comfortable with manual process, you should try doing information technology using your web hosting provider. There are ii means you can use to increase your PHP maximum upload size-

Using your hosting'southward cPanel

If you lot are running your WordPress site on a host that offers cPanel and so it should be easier for you lot to increase the size using the interface.

Step i : Login to your cPanel and click Select PHP Version under Software section.

Step 2: Click on Switch to PHP options.

Footstep 3: At present, click on upload_max_filesize pick, select the value from the drop-down menu and click Save to salve the changes.

The options can go with different names depending upon your spider web hosting provider. Yet, it should be similar enough for you lot to empathise and make the changes accordingly.

Contact your hosting provider for help

If you are experiencing trouble uploading files but couldn't brand the changes yourself, you can besides try reaching to your web hosting provider'southward customer back up. Almost every hosting visitor offers customer back up to help their customers out in need. All y'all need to do is inquire your customer support regarding the upload size limit and they will do it for you. The support staff is technical and upload limit is a trivial task for a tech support person, they should be able to practise it inside a minute.

Selection 3: Server settings to Fix or Increase PHP Maximum Upload Size

If you are comfortable with modifying server settings, you should become with this method. In that location are a lot of server settings that can affect the way uploads are handled by your site. Even so, most tutorials get this wrong because they try to make unnecessary changes. According to the PHP Documentation, you need to consider following 3 directives only-

Mail-max-size: This option sets the max size of post data allowed and also affects the file upload. In order to increment the upload limit, this value should be larger than upload_max_filesize

Upload_max_filesize: Defines the maximum size of upload immune

Memory_limit: In instance memory limit is enabled past your configure script, it also affects the file upload and should be larger than post_max_size in full general.

You need to change the settings for these three directives to increase PHP maximum upload size. Here are the different ways to make server settings edits.

Increase upload size in your php.ini

php.ini files are there to govern the overall default fix up of your server. To edit your php.ini file, login to your site via FTP or SFTP. Or you can as well admission your php.ini file from your site'southward root directory and open or create a php.ini file. If y'all locate the existing php.ini file, and so search for the following directives and change the values. Or you tin can besides only re-create and paste the following lawmaking-

upload_max_filesize = 15M

post_max_size = 16M

memory_limit = 18M

The given values similar 15M, 16M, and 18M, etc is not benchmarks. You tin can enter your desired values likewise. However, make sure that memory_limit is higher than post_maxsize and post_max_site is higher than upload_max_filesize.

Edit .htaccess file

Depending upon the restrictions in your servers, y'all might not exist able to use php.ini files. In the case, yous can access and modify your .htaccess file. It is a special subconscious file that contains various settings of your site. Y'all can use settings to modify the server behavior, correct down to a directory specific level. In case the to a higher place given method didn't work, we propose you try this method out. Login to your site using FTP, have a look at your root directory and locate the .htaccess file. Open up and edit the file. Look for the following directives and change the values appropriately. Or merely copy paste the following code to increment PHP upload size-

ane.php_value upload_max_filesize = 10M

2.php_value post_max_size = 12M

3.php_value memory_limit = 16M

Note: If you become an 'internal server error' bulletin while editing the .htaccess file, it means your server is running PHP in CGI mode. Basically, this method won't work and you lot can't run to a higher place commands in your .htaccess file. YOu can revert back this code in that case.

Edit wp-config.php file

Another way of increasing your PHP maximum upload size is by editing wp-config.php file. You need to admission your WordPress root directory using FTP or SSH and navigate to wp-config.php file. Now, open and edit the file. Look for the following directives and change the values accordingly. Or simply re-create paste the post-obit code to increase PHP upload size-

1.@ini_set( 'upload_max_size' , '18M' );

2.@ini_set( 'post_max_size', '12M');

iii.@ini_set( 'memory_limit', '10M' );

Don't forget to relieve your changes later on editing your wp-config.php file.

Edit functions.php file of your theme

If none of the above mentioned server setting works, you tin can besides try making changes in your office.php file of your theme. In some cases, you might not exist able to access php.ini or .htaccess file, depending upon the restrictions on the server. However, you can increment the PHP maximum upload size past adding the given lawmaking in your functions.php file of your theme-

1.@ini_set( 'upload_max_size' , '18M' );

2.@ini_set( 'post_max_size', '12M');

3.@ini_set( 'memory_limit', '10M' );

Note: Proceed in heed that you demand to edit your functions.php file every fourth dimension you change the theme or else the maximum upload size will render to its default values.

Selection 4: Ready or Increment PHP Maximum Upload Size Using a Plugin

Increase Maximum Upload File Size

I will recommend you to use whatsoever of the in a higher place explained methods to increase your PHP maximum upload size only if you can handle a little bit of technical methods. Even so, if you lot are only a beginner and not comfortable with transmission modifications of server settings so I would recommend you to steer clear of any of the aforementioned methods. In such situations, I'd recommend you to use a plugin. There are various plugins bachelor that can help you increment your PHP maximum upload size.

Quick recommendation: use Increase Max Upload Filesize plugin. This plugin can automatically detect the upload limits set by server, hosting providers, and WordPress. You can hands access the plugin's settings from the primary WordPress admin panel. This plugin is easy to install and easier to apply. Moreover, it comes for free and you don't accept to pay for it to use it. Let'southward get started with the steps to apply it-

Login to your WordPress admin console.

Navigate to your Dashboard> Plugins> Add New. Search for 'Increment Max Upload Filesize' and and so activate and install the plugin.

Later on the successful installation, go to plugin settings and just enter the value for upload size.

Click the Salvage Changes push to brand the new changes.

That's it. You've successfully increased the PHP maximum upload size using the plugin method.

Summary

WordPress is known for its flexibility. You can ever modify information technology according to your demand and there is always a way to practice information technology. Yous tin can use any of the aforementioned methods to make the desired changes and increase the PHP maximum upload size. As you can see, increasing the upload limit is non that complex. Moreover, there are several means to do it. Therefore, cull the method you lot feel almost comfortable with and make the changes appropriately. We promise that this tutorial is helpful to yous. For more tutorials like this, visit our blog. For more queries and recommendations, delight comment beneath!