Need help? Book our fixed price WordPress Support service.

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 speak to you webhost who may change this setting for you.

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

Was this article helpful?

No 0

About the Author

Christian Mayne is a full time WordPress developer and consultant based in the UK. He runs a UK based WordPress development agency with clients all over the World. As well as WordPress development, Christian has been teaching WordPress use and development since 2014 in classroom settings and online.

LEAVE COMMENT