How to Increase the Maximum File Upload Size in WordPress

Share on Facebook0Share on LinkedIn0Share on Google+0Tweet about this on Twitter0Share on TumblrShare on StumbleUpon1Pin on Pinterest0Digg thisShare on Reddit0Buffer this pageFlattr the authorEmail this to someonePrint this page

Upload Large Files to WordPress

If you are stuck in uploading large images/media-files through WordPress “Upload Media” and getting an upload limit error message then you shouldn’t be worried about it as there are many ways to increase “Maximum File Upload Size”.

Latest 3.9 version of  Wordpress allows you to upload 32MB file size, however it depends on the host as well. 3.6 version had a limit of 10MB but in older versions it was 2MB. Many bloggers haven’t updated WordPress versions but they want to increase file upload limit. We are going to list few methods in this post so you can enjoy the latest feature on your older wordpress version.

Theme Functions File

First of all, try to edit wordpress theme function file, as many of the times this works. Add following code in theme functions file.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Php.ini File

If you are using a dedicated server then you can see php.ini file in the root directory but in most cases shared hosts don’t allow to edit this file and its hidden at user end. If you are using a shared host then simply create a php.ini file and paste the below code in it.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Note: For many users 64M works but in case if you are unable to see 64M size in Media Upload screen then simply reduce the size to 10M and it’ll work.

.htaccess Method

I’m sure you probably know how .htaccess works so I will not be going in depth details but sharing a very simple method that can increase the file upload size.

Open .htaccess file, just paste the below code in the start and upload to 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
Share on Facebook0Share on LinkedIn0Share on Google+0Tweet about this on Twitter0Share on TumblrShare on StumbleUpon1Pin on Pinterest0Digg thisShare on Reddit0Buffer this pageFlattr the authorEmail this to someonePrint this page

Like this Article ? Subscribe to Our Feeds

One thought on “How to Increase the Maximum File Upload Size in WordPress”

  1. Alvaro says:

    I see a lot of interesting content on your blog.

Leave a Reply

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


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Get Widget