How to Increase the Maximum File Upload Size in WordPress

Hello friends,
Today i am going to show you few methods for How to Increase the Maximum File Upload Size in WordPress. If you using wordpress then i am sure you may face this problem.To resolve this issue there are diffrent methods. To increase File upload size in wordpress we can use these 4 diffrent methods.

  1. By using .htaccess file
  2. By using Theme’s Functions.php File
  3. By using PHP.INI file method
  4. By using Plugin

Notes:
Take a backup of the .htaccess file, functions.php file, or php.ini file, before doing any change. It’s important. Some methods may not support, because of WordPress versions.

First method is to add these lines in your theme function file.

1.> Theme Functions File(functions.php)

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

The second method is to add the below code in your php.ini file or create a new php.ini file on your server root.


2.> Create or Edit an existing PHP.INI file

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

The third method is to add the given code in the .htaccess file inside the starting and ending tags. If there is no .htaccess file please create a new one.


3.> .htaccess Method

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

If you are on a shared hosting package, then these techniques may not work. In that case, you would have to contact your web hosting provider to increase the limit for you.


4.> Use a Plugin

There is an another way to increase the Memory Limit by using this plugin Increase Upload Max Filesize.  This plugin is created by Imagify You can use this plugin to increase memory size.