How to Increase Maximum Media Library File Upload Size in WordPress

In WordPress 3.6 Oscar version Maximum Media library file upload size is 10MB, it is enough, but if your site is a contain e-books, audio, flash and video Media files then than 10mb is not enough, And if you are still using old WordPress version than it allow maximum  2MB file upload limit, This post helps you, how to increase maximum file upload size WordPress ?.

increase maximum file upload size wordpress

Note : Before Paste this code to your .htaccess, function.php, or php.ini file Must Backup your website, Its case sensitive code. or Before Editing Code Must contact your web host provider and ask for support.

How to Increase maximum file upload size WordPress.

There is the three way to increase Maximum file upload size in WordPress.

  • .htaccess File method
  • Functions.php File Method.
  • PHP.INI File Method

I put Above sequences as your ease to use, First two methods are very easy just copy and paste code but third one is little tricky. so if you are newbie or nontechnical person use first two method, if you fail then use third method under guidance of  your host provider.

.htaccess File Method

Find The .htaccess file under the root of website file using ftp method. and Just paste below code to .htaccess file. This is Easy method You just have ftp knowledge.

Here I Maximize File size Upto 32MB if you want Increase more than 32mb upload size than put size place of 32mb, like 64mb,102mb as your need.

Note : Before Editing code backup your htaccess file once.

Fuctions.php File Method

Now This is one the easiest method and same as htaccess file method, you have to find function.php file under root of your website files, under wp-content –> themes –> select Your Running Theme. you will find function.php file. Edit it and past below code.

Here also you may change memory limit. But Don’t forget backup this file before paste code.

PHP.INI File Method

This is little tricky and complex method for newbie WordPress user, because in shared hosting generally this file restricted to access you can’t see php.ini file under website root folder. If you able to php.ini file than just paste below code into the file but if you not see this file than create php.ini file remember put extension is .INI when you create file.

Note : now, if you are not comfortable with third method contact your Web host provider. And don’t forget to backup your website before editing this files.

So, Which Method Are you use for increase maximum file upload size WordPress ?.

Subscribe

Subscribe and Get Free Daily Wordpress Tips and Tutorial Free!

About Mitul Shah

I just love to working with WordPress and i like to share my knowledge to all over world using this website hope my articles as help to build your blog powerful.

Comments

  1. Doesn’t work in WP 3.6. Any other suggestion?

  2. when i use first method but i got the error
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

  3. @julie – it is because PHP is not running as a module in your server. Your best bet will be using the functions.php file.

  4. The third method worked for me, not the first two. Any ideas why the first two would work for some but not others??

  5. I ended up doing all three before it finally worked. I learned the php.ini method from others sites first and that didn’t work. Then I also tried updating wp-config and that didn’t work. Doing the .htaccess and functions.php AND php.ini covered all my bases and I FINALLY (after 2 hours of wrestling with this beast) have an increased upload limit.

    Thank you for this post and for putting it all in simple, easy-to-follow steps!
    TC

  6. Actually, the upload size is not caused by WordPress, just by the PHP and Server configuration. WordPRess itself can easily handle 200MB uploads, if your hosting provider supports that.

  7. Does the heavy theme such as 10mb 30 mb themes affects the site performance ?

  8. Hi!
    After searching for about 2 hours and not understanding why wordpress was still showing me a max upload size of 2MB when my host allowed 8, after trying the functions.php method, the .htaccess method (internal server error) and the php.ini method, placed inside wp_admin, what did the trick was renaming the php.ini file to php5.ini.
    Worked instantly.

Tell us what you're thinking...

All comments are moderated.

* Denotes required field.

*

Notify via Email Only if someone replies to My Comment