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.
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).
Follow the below steps to change the file upload size:
- Login to your WordPress dashboard
- Go to Plugins > Add New
- Search for “file upload size”, you will find increase max upload filesize plugin.
- Click Install Now and then Activate.
- Go to Upload Max File Size, enter the new size and click Save Changes.
- 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
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:
- Login to your web hosting account
- Go to Cpanel
- Access the File Manager from Cpanel as follows (screenshot is from SiteGround web hosting):
- Now from the root directory of your blog, you will find the php.ini file as follows:
- Select the php.ini file and click “Edit”
- Then add the file as shown in the below screenshot and save the file.
- 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
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.