The uploaded file exceeds the upload_max_filesize directive in php.ini

Copy and paste the code below into your .htaccess file. Please make sure you download the latest htaccess file from your server so you do not accidentally erase any important code.

# BEGIN Increase Max Upload Size
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 300
php_value max_input_time 300
# END Increase Max Upload Size

How to View and Edit Your .httaccess File

.httaccess is a hidden file, and can be placed in any folder. For the use case scenario given above, your .htaccess file is located in the root directory of your WordPress installation. Open up your favorite FTP program, I use Transmit by Panic, and make sure you have the option selected to view hidden files.

Screen Shot 2013-12-17 at 6.46.28 PM

Now simply download the file, and open the file with your favorite text editor. Again, make sure your desktop operating system is able to view hidden files. Once you added your changes to it, upload it back to your website server.

I Do Not Have an .htaccess File in My Root Directory!

That’s OK. That probably means that you never changed your permalink settings for WordPress, so WordPress never needed to create an .htaccess file. You can simply create one your self with your text editor like you would with any other file. Just make sure you name it .htaccess