File Exceeds the Maximum Upload Size

When uploading an image or other media to the WordPress Media Library, you may receive an error:

File exceeds the maximum upload size for this site.

This is due to a setting on your webserver. If you are not confident changing server settings you can submit a support ticket. There is a small charge for this service

If you are comfortable changing settings, there are a couple of options

Use cPanel Functionality

If your website uses cPanel, there will often be a PHP Version Selector or php.ini editor which will allow you to change the upload_max_filesize directive. You should change this to a value that will allow you to upload your media. However, this value should be lower or equal to the the max_post_size directive

Add a php.ini File

Add a file called php.ini to the root directory of your website and add the following lines, adjusting the values to your own requirements
upload_max_filesize = 16M
post_max_size = 20M

Want us to do it for you?

Order our paid support product
Article published 19th March 2020
Last modified 21st November 2023

Loading