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.


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.


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.


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.


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.

Originally posted on May 7, 2014 @ 5:02 pm

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.