The fact that you're reading this post means you take see an issue while uploading files to your WordPress site. Simply don't worry, I am going to offer your more one quick fix for this issue. "Exceeds the maximum upload size for this site" is a mutual issue often experienced past professionals or web site owners while uploading an HTML file. Fortunately, you can increase your PHP maximum upload size to resolve this issue.

WordPress is the powerhouse of the cyberspace and can be used for edifice and running whatsoever kind of personal or business site. If you still don't have your ain website, consider it a sign to get one. Moreover, with the avant-garde 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 likewise offers ready-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?

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 lot are not sure what the electric current maximum upload size is in your WordPress, you can check it by navigating to the WordPress admin panel> Media> Add New. You will come across the maximum upload size on the bottom of the screen. Start of all, it is not a WordPress issue. Resizing every file before uploading tin be a fourth dimension-consuming task. Therefore, you demand to increase the upload size limit when necessary.

Fortunately, there are many means to increment the upload file size limit in PHP every bit using whatever of the following explained methods. I am writing this guide to provide all possible solutions. Withal, depending upon your web host some methods may not work. In that case, try contacting your web hosting provider. Let's get started.

How to Increase the WordPress Maximum upload file size?

It is important to understand why this issue happens in order to prepare information technology. Many spider web hosting providers keep the limit low by default, so it can be your hosting provider'due south issue or information technology tin can be a server-level issue. With this article, I will try to explain various root causes of the issue then you lot can figure out the right solution to gear up it. Hither are some means you can go about resolving the WordPress Maximum upload file size issue. Allow'due south dig in-

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

If you are running a multisite installation, y'all might want to customize the upload limit for your site. However, you lot can only set the limit just if your server allows it. For instance, if your server is prepare to 20 MB and so yous can't exceed the limits over xx MB from your network settings, Notwithstanding, If your server is set to 20 MB, so you tin can set information technology upwardly to twenty MB from your network settings. Follow the given steps-

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

Gyre downward and double click the Max upload file size option. Enter the value in KBs to increase the upload file size and click Relieve Changes to salvage the changes.

That's information technology. Yous'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 do non experience comfortable with manual process, yous should effort doing it using your web hosting provider. At that place are two ways yous can use to increase your PHP maximum upload size-

Using your hosting'due south cPanel

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

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

Step 2: Click on Switch to PHP options.

Footstep 3: Now, click on upload_max_filesize option, select the value from the drop-down menu and click Salve to save the changes.

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

Contact your hosting provider for aid

If yous are experiencing trouble uploading files just couldn't make the changes yourself, y'all can also try reaching to your web hosting provider'south customer support. Almost every hosting company offers client support to assistance their customers out in need. All y'all need to do is inquire your customer support regarding the upload size limit and they will practise information technology for yous. The back up staff is technical and upload limit is a trivial task for a tech support person, they should be able to do information technology inside a minute.

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

If yous are comfortable with modifying server settings, yous should go with this method. At that place are a lot of server settings that tin can bear on the way uploads are handled by your site. However, most tutorials get this wrong because they try to make unnecessary changes. According to the PHP Documentation, y'all need to consider following three directives but-

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 example retentiveness limit is enabled by your configure script, it too affects the file upload and should be larger than post_max_size in general.

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

Increase upload size in your php.ini

php.ini files are there to govern the overall default set up of your server. To edit your php.ini file, login to your site via FTP or SFTP. Or y'all tin as well access your php.ini file from your site'southward root directory and open or create a php.ini file. If you locate the existing php.ini file, so search for the following directives and change the values. Or yous can also just copy and paste the post-obit code-

upload_max_filesize = 15M

post_max_size = 16M

memory_limit = 18M

The given values like 15M, 16M, and 18M, etc is not benchmarks. Y'all can enter your desired values as well. 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 be able to use php.ini files. In the case, you tin access and modify your .htaccess file. It is a special hidden file that contains various settings of your site. You can use settings to modify the server behavior, correct down to a directory specific level. In case the above 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 and edit the file. Look for the following directives and change the values appropriately. Or only re-create paste the following code to increment PHP upload size-

i.php_value upload_max_filesize = 10M

2.php_value post_max_size = 12M

3.php_value memory_limit = 16M

Annotation: If you get an 'internal server fault' message while editing the .htaccess file, it means your server is running PHP in CGI mode. Basically, this method won't work and you tin't run above commands in your .htaccess file. YOu can revert back this code in that case.

Edit wp-config.php file

Some other way of increasing your PHP maximum upload size is by editing wp-config.php file. Y'all demand to access your WordPress root directory using FTP or SSH and navigate to wp-config.php file. At present, open and edit the file. Wait for the following directives and change the values appropriately. Or just copy paste the post-obit code to increase PHP upload size-

ane.@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 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 also attempt making changes in your function.php file of your theme. In some cases, yous might not exist able to access php.ini or .htaccess file, depending upon the restrictions on the server. All the same, you can increase the PHP maximum upload size by adding the given code 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' );

Annotation: Go along in listen that you need to edit your functions.php file every fourth dimension you lot change the theme or else the maximum upload size will render to its default values.

Option four: Fix or Increase PHP Maximum Upload Size Using a Plugin

Increase Maximum Upload File Size

I will recommend you to use whatever of the to a higher place explained methods to increment your PHP maximum upload size but if you can handle a petty flake of technical methods. However, if y'all are just a beginner and not comfortable with manual modifications of server settings then I would recommend y'all to steer clear of whatsoever of the aforementioned methods. In such situations, I'd recommend yous to apply a plugin. There are various plugins available that can assist you increment your PHP maximum upload size.

Quick recommendation: use Increment Max Upload Filesize plugin. This plugin tin can automatically detect the upload limits set up by server, hosting providers, and WordPress. You can easily access the plugin's settings from the principal WordPress admin panel. This plugin is like shooting fish in a barrel to install and easier to use. Moreover, it comes for gratuitous and y'all don't have to pay for information technology to use it. Permit's become started with the steps to utilise information technology-

Login to your WordPress admin panel.

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

After the successful installation, get to plugin settings and only enter the value for upload size.

Click the Save Changes button to make 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 lot can always alter it co-ordinate to your need and there is always a way to practise it. You tin can use any of the aforementioned methods to make the desired changes and increase the PHP maximum upload size. As you can run into, increasing the upload limit is not that complex. Moreover, there are several ways to practise it. Therefore, choose the method y'all feel most comfortable with and make the changes accordingly. We promise that this tutorial is helpful to you. For more than tutorials similar this, visit our blog. For more queries and recommendations, please comment below!