By default, most hosts are configured to have upload limits of 2MB. This is fine for most cases, but sometimes you or your users will be uploading pictures straight from the cameras that took them, sometimes exceeding 10MB per photo. While we would certainly recommend you do some post-production of your photos first and even save them for web display, this isn't always practical in everyone's workflow.
When you need to upload large photos or multiple photos that total up to a large amount you may need to ask your web host to increase your upload limit. There are two methods in which you can do this:
Method 1: Modify wp-config.php
The easiest way of updating your upload limitations is to add the following lines to your wp-config.php file above the comment that says /* That's all, stop editing! Happy blogging. */.
// Increase PHP upload limitations
ini_set( 'upload_max_filesize', "8M" );
ini_set( 'post_max_size', "8M" );
This will update PHP's file upload limitations only for your WordPress site to 8MB. Please note that not all hosts are configured to recognize the ini_set() command or allow for overrides like this to be recognized. If you still have problems with upload limitations you'll need to try Method 2
Method 2: Modify PHP settings directly
If you cannot update your upload limitations with Method 1, please ask your web host to update your domain's PHP settings or how you can update your domain's PHP settings:
upload_max_filesize = 8M
post_max_size = 8M
Your web host may be configured that you can add these lines in a php.ini file in your website's root folder or even use the php_value directive in your website's .htaccess file. Web host configurations vary, so you will need to ask your host about where they would like you to put these settings.