»  Knowledgebase  »  WordPress Administration  »  File Exceeds the Maximum Upload Size

File Exceeds the Maximum Upload Size

by | Jun 20, 2022 | 0 comments

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


Submit a Comment

Your email address will not be published.

UK WordPress Support

We are a team of UK based WordPress experts offering WordPress help & support, WordPress site management and maintenance, content management services, one to one WordPress training and consultancy.

Need to chat? Contact Us Now!

WordPress Maintenance

Let us manage your plugin and theme updates, keep your WordPress website site running smoothly and your visitors happy!

WordPress Care Plans
from just £35 / month!

One to One WordPress Training

We provide one to one WordPress training to individuals and companies all over the World!

Whether you are developing new skills for business or working on a personal project, we can support you, and your first trial session is free!

Book an initial WordPress Orientation Session

Get the WordPress Management Guide

Get the WordPress Management Guide

Sign up to our newsletter to receive our insider guide to managing WordPress in [currentyear], free to your inbox.

You have Successfully Subscribed!