The fact that you're reading this postal service means you lot have see an issue while uploading files to your WordPress site. But don't worry, I am going to offer your more than than one quick fix for this issue. "Exceeds the maximum upload size for this site" is a mutual effect often experienced past professionals or web site owners while uploading an HTML file. Fortunately, you tin can increment your PHP maximum upload size to resolve this consequence.

WordPress is the powerhouse of the internet and can be used for building and running any kind of personal or business organisation site. If you still don't accept your ain website, consider it a sign to become one. Moreover, with the advanced tools and technologies, having a site is quite easy now. Get TemplateToaster and create your own website using its drag and drop interface. Moreover, it also offers ready-to-utilise 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?

By default, PHP allows a maximum file upload of 2 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 are not sure what the electric current maximum upload size is in your WordPress, you tin check it by navigating to the WordPress admin panel> Media> Add New. You lot will see the maximum upload size on the lesser of the screen. First of all, it is not a WordPress event. Resizing every file before uploading can be a fourth dimension-consuming job. Therefore, you need to increase the upload size limit when necessary.

Fortunately, there are many ways to increment the upload file size limit in PHP as using any of the post-obit 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 instance, endeavor contacting your web hosting provider. Let'due south get started.

How to Increase the WordPress Maximum upload file size?

Information technology is important to sympathise why this issue happens in society to fix it. Many spider web hosting providers keep the limit depression by default, so it tin be your hosting provider'southward result or information technology can be a server-level issue. With this commodity, I volition endeavour to explicate diverse root causes of the issue and then you tin can figure out the right solution to set up it. Here are some means you tin can go nearly resolving the WordPress Maximum upload file size result. Let's dig in-

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

If y'all are running a multisite installation, yous might desire to customize the upload limit for your site. However, you can merely set the limit only if your server allows information technology. For instance, if your server is set to 20 MB then yous tin can't exceed the limits over xx MB from your network settings, Withal, If your server is set to 20 MB, then 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.

Whorl downward and double click the Max upload file size selection. Enter the value in KBs to increase the upload file size and click Save Changes to save the changes.

That'southward information technology. You lot've successfully increased the upload size limit in a multisite installation.

Choice 2: Fix or Increment PHP Maximum Upload Size using Web Hosting provider

If you exercise not feel comfy with transmission process, you lot should attempt doing it using your web hosting provider. At that place are ii ways you lot can utilize to increase your PHP maximum upload size-

Using your hosting's cPanel

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

Step 1 : Login to your cPanel and click Select PHP Version nether Software section.

Stride two: Click on Switch to PHP options.

Stride 3: Now, click on upload_max_filesize option, select the value from the drop-downward menu and click Save to relieve the changes.

The options can get with unlike names depending upon your web hosting provider. However, it should be similar enough for you to understand and brand the changes appropriately.

Contact your hosting provider for help

If you are experiencing trouble uploading files but couldn't make the changes yourself, yous can also try reaching to your web hosting provider'southward client support. Almost every hosting company offers customer support to help their customers out in need. All you need to do is ask your client support regarding the upload size limit and they will practise it for y'all. The back up staff is technical and upload limit is a fiddling task for a tech support person, they should be able to do it within a infinitesimal.

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

If you are comfy with modifying server settings, you should go with this method. There are a lot of server settings that tin can affect the fashion uploads are handled by your site. However, near tutorials get this incorrect because they effort to make unnecessary changes. According to the PHP Documentation, you need to consider following three directives but-

Mail service-max-size: This option sets the max size of post data immune and likewise 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 case retentivity limit is enabled by your configure script, information technology too affects the file upload and should be larger than post_max_size in general.

You demand to alter the settings for these three directives to increase PHP maximum upload size. Here are the dissimilar ways to make server settings edits.

Increase upload size in your php.ini

php.ini files are at that place to govern the overall default set upward of your server. To edit your php.ini file, login to your site via FTP or SFTP. Or yous tin can besides admission your php.ini file from your site'due south root directory and open up or create a php.ini file. If you locate the existing php.ini file, and then search for the following directives and change the values. Or you can also simply re-create 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 lot can enter your desired values too. However, make certain 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, yous might non be able to use php.ini files. In the case, y'all can admission and modify your .htaccess file. It is a special hidden file that contains diverse settings of your site. You can use settings to modify the server beliefs, correct down to a directory specific level. In case the higher up given method didn't work, we suggest you try this method out. Login to your site using FTP, have a await at your root directory and locate the .htaccess file. Open and edit the file. Look for the following directives and modify the values accordingly. Or merely copy paste the post-obit 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 you become an 'internal server mistake' message while editing the .htaccess file, it ways your server is running PHP in CGI mode. Basically, this method won't work and you can't run higher up commands in your .htaccess file. YOu can revert back this code in that example.

Edit wp-config.php file

Some other way of increasing your PHP maximum upload size is by editing wp-config.php file. You need to access your WordPress root directory using FTP or SSH and navigate to wp-config.php file. Now, open and edit the file. Await for the following directives and change the values accordingly. Or but copy paste the following code to increase PHP upload size-

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

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

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

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

Edit functions.php file of your theme

If none of the in a higher place mentioned server setting works, you tin can also effort making changes in your function.php file of your theme. In some cases, you lot might non be able to access php.ini or .htaccess file, depending upon the restrictions on the server. Nevertheless, you can increase the PHP maximum upload size by adding the given code in your functions.php file of your theme-

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

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

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

Note: Continue in mind that you demand to edit your functions.php file every time you change the theme or else the maximum upload size will return to its default values.

Pick iv: Prepare or Increase PHP Maximum Upload Size Using a Plugin

Increase Maximum Upload File Size

I volition recommend you to use whatsoever of the above explained methods to increase your PHP maximum upload size only if you can handle a little bit of technical methods. Notwithstanding, if yous are merely a beginner and not comfortable with manual modifications of server settings and then I would recommend you to steer clear of any of the same methods. In such situations, I'd recommend you to use a plugin. There are various plugins available that can aid yous increase your PHP maximum upload size.

Quick recommendation: use Increase Max Upload Filesize plugin. This plugin can automatically discover the upload limits set past server, hosting providers, and WordPress. You tin can hands access the plugin's settings from the chief WordPress admin console. This plugin is easy to install and easier to use. Moreover, it comes for free and you don't have to pay for it to use information technology. Allow'south get 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' then activate 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'south it. You've successfully increased the PHP maximum upload size using the plugin method.

Summary

WordPress is known for its flexibility. You can always alter it according to your need and there is always a fashion to do it. Y'all can use any of the aforementioned methods to make the desired changes and increase the PHP maximum upload size. As you can come across, increasing the upload limit is not that complex. Moreover, at that place are several ways to exercise it. Therefore, choose the method you experience most comfortable with and make the changes accordingly. We hope that this tutorial is helpful to y'all. For more tutorials like this, visit our blog. For more queries and recommendations, please annotate beneath!