If you are reading this blog post then for sure you are facing the error: “exceeds the maximum file size of this site”.

Almost every WordPress user might face this issue and as this a common problem.

In fact, this is not a problem with WordPress and it is all about your server’s PHP configuration.

Generally, all the web hosting providers limit the maximum upload size of files for example to 2 MB or 5 MB. This is done to have higher security for your sites because there is possibility for an attacker to upload huge content to your server causing potential security issues.

Hence they are always limited by your web hosting provider.How to Set Maximum File Upload Size In WordPress?

In this article, I will take you through the steps to setup the limit, for maximum size of file upload, allowed.

The simple way to increase maximum file upload size (using a Plugin).

If you are not comfortable in editing the source code or doing technical stuff from your Cpanel then the best approach is to use a WordPress plugin.

Follow the below steps to change the file upload size:

  1. Login to your WordPress dashboard
  2. Go to Plugins > Add New
  3. Search for “file upload size”, you will find increase max upload filesize plugin.upload file size installation steps
  4. Click Install Now and then Activate.
  5. Go to Upload Max File Size, enter the new size and click Save Changes.steps to change the value of file size upload limit
  6. Note: The value is in bytes that means if you want to increase the size as 10 MB then you should calculate as 10 * 1048576 = 10485760
  7. Done

You can also verify the current upload limit using the Debug Info Plugin.

  • Once you install the Debug Info Plugin, go to Dashboard > Debug Info > Show Details.
  • You can find the value of the variable upload_max_filesize under the Core section.

Directly editing the PHP.INI file from CPanel

In case, if you are comfortable in editing files from your Cpanel then follow the below steps:

  1. Login to your web hosting account
  2. Go to Cpanel
  3. Access the File Manager from Cpanel as follows (screenshot is from SiteGround web hosting):access file manager
  4. Now from the root directory of your blog, you will find the php.ini file as follows:edit php ini file
  5. Select the php.ini file and click “Edit”
  6. Then add the file as shown in the below screenshot and save the file.change value in php ini
  7. The above example shows the limit as 256 MB, in case if you want to set 10 MB then change it as upload_max_filesize = 10M
  8. Done

These are the simple ways to quickly fix the “exceeds the maximum file size of this site” error.

If you are not comfortable in editing the code then go for plugin method or else you can directly edit the php.ini file from Cpanel.

SiteGround users shall quickly contact the support team through Live Chat, they will help you in few minutes without a headache.

Let me know, how you fixed this issue, this may help other users also.

Good Luck.

 

2017-11-22T12:19:48+00:00

About the Author:

I love-to-code, passionate-to-write, an upcoming author, and WordPress enthusiast. Here at BlashO, I mostly share WordPress tips. Connect with me @Twitter.

Leave A Comment