4 Ways to Increase Your Maximum File Upload Size for WordPress Media

File Upload

Upload New Media

Just out the box your WordPress installs’ Media Uploader has a file upload limit set to it. It is usually set at 2MB. This is good for images, but nowhere near enough for audio and video uploads. There are a few methods you can try that will increase the Maximum File Upload Size. You can use any ftp client of your choice to get to the files on your server. Here is a link to the FileZilla FTP Client.

The image below shows the Maximum upload size set at 8MB. (MegaBytes)

Media File Upload

1)Sometimes just inserting the following code in your themes functions.php file can set the upload file size to the required size.

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

2)The following code can be added to the php.ini file. If you are on a shared hosting server you may not see this file. It usually resides in the root directory of your website. You can create the file and add the code to it.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

3)Another way that has worked for some is to add the following code to your sites .htaccess file also found in the root directory.

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

4)If none of the above works for you, you can either give it one last shot and upload a plugin to try get the job done, or if all else fails contact your Hosting Service Provider. If they are worth their salt they will resolve the issue for you quickly.
I hope this info benefited someone out there and remember if you need someone to take care of and look after your WordPress website don’t hesitate to give us a shout. WordPress is what we do and we will make sure to give you real value for your money. Till the next time…

Leave a Comment

Your email address will not be published. Required fields are marked *