The fact that y'all're reading this post means you have run across an issue while uploading files to your WordPress site. But don't worry, I am going to offering your more 1 quick fix for this issue. "Exceeds the maximum upload size for this site" is a common outcome often experienced by professionals or web site owners while uploading an HTML file. Fortunately, yous can increase your PHP maximum upload size to resolve this issue.

WordPress is the powerhouse of the internet and can exist used for building and running any kind of personal or business concern site. If you all the same don't have your own website, consider it a sign to get i. Moreover, with the advanced tools and technologies, having a site is quite easy now. Go TemplateToaster and create your ain website using its drag and drop interface. Moreover, it also offers fix-to-use WordPress Themes. Given this, creating your own site is just a matter of a couple of dragging and dropping.

What is PHP Maximum Upload Size?

Past default, PHP allows a maximum file upload of ii MB. The limit exists for security and efficiency purposes as it prevents users from flooding your site with unnecessarily large media files.

Why increment PHP maximum upload size?

If you lot are not certain what the current maximum upload size is in your WordPress, you can cheque it by navigating to the WordPress admin panel> Media> Add together New. Yous will see the maximum upload size on the bottom of the screen. Starting time of all, it is non a WordPress outcome. Resizing every file before uploading tin can be a fourth dimension-consuming task. Therefore, you 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. However, depending upon your web host some methods may not work. In that case, try contacting your spider web hosting provider. Permit'southward become started.

How to Increment the WordPress Maximum upload file size?

It is important to sympathise why this issue happens in gild to fix information technology. Many web hosting providers keep the limit low by default, so it can be your hosting provider's issue or it can exist a server-level issue. With this article, I will try to explain diverse root causes of the effect and then you tin can effigy out the right solution to fix it. Hither are some ways yous tin go about resolving the WordPress Maximum upload file size issue. Let's dig in-

Option ane: Fix or Increment PHP Maximum Upload Size in a Multisite install

If you are running a multisite installation, you might want to customize the upload limit for your site. All the same, you lot tin only prepare the limit simply if your server allows it. For instance, if your server is set to 20 MB then you tin can't exceed the limits over xx MB from your network settings, However, If your server is prepare to 20 MB, so you tin set it up to 20 MB from your network settings. Follow the given steps-

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

Scroll down and double click the Max upload file size pick. Enter the value in KBs to increase the upload file size and click Save Changes to relieve the changes.

That's it. You've successfully increased the upload size limit in a multisite installation.

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

If you lot exercise non experience comfortable with transmission process, y'all should endeavor doing it using your web hosting provider. There are two ways you can use to increase your PHP maximum upload size-

Using your hosting's cPanel

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

Step 1 : Login to your cPanel and click Select PHP Version under Software department.

Step 2: Click on Switch to PHP options.

Step iii: At present, click on upload_max_filesize pick, select the value from the drib-down carte du jour and click Save to salve the changes.

The options can get with different names depending upon your web hosting provider. Nonetheless, information technology should be similar enough for you to sympathise and make the changes appropriately.

Contact your hosting provider for help

If you are experiencing trouble uploading files merely couldn't make the changes yourself, you tin can also try reaching to your web hosting provider's customer support. Almost every hosting company offers client support to help their customers out in need. All you need to do is ask 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 do information technology within a minute.

Option three: Server settings to Set or Increase PHP Maximum Upload Size

If you are comfortable with modifying server settings, you should go with this method. There are a lot of server settings that can affect the mode uploads are handled past your site. However, nigh tutorials get this wrong because they try to brand unnecessary changes. According to the PHP Documentation, y'all demand to consider post-obit three directives merely-

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

Upload_max_filesize: Defines the maximum size of upload allowed

Memory_limit: In case memory limit is enabled by your configure script, it as well affects the file upload and should exist larger than post_max_size in full general.

You need to change the settings for these iii directives to increment PHP maximum upload size. Here are the unlike ways to make server settings edits.

Increase upload size in your php.ini

php.ini files are there to govern the overall default set of your server. To edit your php.ini file, login to your site via FTP or SFTP. Or y'all tin can too access your php.ini file from your site'due south root directory and open or create a php.ini file. If you locate the existing php.ini file, then search for the following directives and alter the values. Or you can also just copy and paste the following code-

upload_max_filesize = 15M

post_max_size = 16M

memory_limit = 18M

The given values like 15M, 16M, and 18M, etc is not benchmarks. You can enter your desired values too. 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, you might not exist able to use php.ini files. In the instance, y'all can access and alter your .htaccess file. It is a special subconscious file that contains various settings of your site. You tin can utilize settings to modify the server behavior, correct down to a directory specific level. In instance the in a higher place given method didn't work, we propose y'all effort this method out. Login to your site using FTP, accept a look at your root directory and locate the .htaccess file. Open up and edit the file. Look for the following directives and modify the values appropriately. Or just copy paste the following code to increase PHP upload size-

1.php_value upload_max_filesize = 10M

2.php_value post_max_size = 12M

3.php_value memory_limit = 16M

Note: If y'all get an 'internal server error' message while editing the .htaccess file, it ways your server is running PHP in CGI style. Basically, this method won't work and you lot tin't run above commands in your .htaccess file. YOu can revert back this code in that example.

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 alter the values accordingly. Or just re-create paste the following lawmaking to increase PHP upload size-

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

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

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

Don't forget to salvage your changes after editing your wp-config.php file.

Edit functions.php file of your theme

If none of the above mentioned server setting works, you lot can also endeavour making changes in your part.php file of your theme. In some cases, you might not be able to admission php.ini or .htaccess file, depending upon the restrictions on the server. Notwithstanding, yous can increase the PHP maximum upload size by calculation the given lawmaking in your functions.php file of your theme-

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

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

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

Note: Continue in listen that y'all need to edit your functions.php file every time you lot change the theme or else the maximum upload size will return to its default values.

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

Increase Maximum Upload File Size

I volition recommend you to use any of the above explained methods to increment your PHP maximum upload size only if you lot can handle a little bit of technical methods. However, if yous are simply a beginner and not comfortable with transmission modifications of server settings then I would recommend you to steer clear of whatsoever of the aforementioned methods. In such situations, I'd recommend yous to use a plugin. There are various plugins available that tin help you increment your PHP maximum upload size.

Quick recommendation: employ Increment Max Upload Filesize plugin. This plugin can automatically detect the upload limits fix by server, hosting providers, and WordPress. You can easily admission the plugin'south settings from the main WordPress admin panel. This plugin is like shooting fish in a barrel to install and easier to apply. Moreover, it comes for free and you don't take to pay for information technology to apply it. Allow's become started with the steps to employ it-

Login to your WordPress admin panel.

Navigate to your Dashboard> Plugins> Add New. Search for 'Increase Max Upload Filesize' and then actuate and install the plugin.

After the successful installation, go to plugin settings and simply enter the value for upload size.

Click the Save Changes button to make the new changes.

That'due south information technology. You lot've successfully increased the PHP maximum upload size using the plugin method.

Summary

WordPress is known for its flexibility. You can always modify it co-ordinate to your need and there is always a fashion to practise it. You 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 not that complex. Moreover, there are several ways to practice it. Therefore, choose the method you feel most comfortable with and make the changes accordingly. We promise that this tutorial is helpful to you. For more tutorials like this, visit our web log. For more queries and recommendations, please comment below!