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 ?.
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.
1
2
3
4
|
php_value upload_max_filesize32M
php_value post_max_size32M
php_value max_execution_time300
php_value max_input_time300
|
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.
1
2
3
|
@ini_set(‘upload_max_size’,’32M’);
@ini_set(‘post_max_size’,’32M’);
@ini_set(‘max_execution_time’,‘300’);
|
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.
1
2
3
|
upload_max_filesize=32M
post_max_size=32M
max_execution_time=300
|
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