5 Ways To Increase Maximum File Upload Size In WordPress

Saturday, 2 January 2016

5 Ways To Increase Maximum File Upload Size In WordPress

Posted by Rahul Gupta
There's an media center in your WordPress dashboard to upload audio, video and pictures. You can easily upload media files in your posts. But there is a limit, you can't upload file greater than the specified maximum file upload size. In some of the cases it's very low. But at that time you can upload pictures only and obviously media center can't be use to upload audio or video files of larger size.
Increase Max File Upload Size In Wordpress
Increase Max File Upload Size
This limit depends on the hosting you're using. Some hosting packages come with only 2MB of limit which is fine for images only. But don't worry there are a couple of ways which can be used to increase upload limit.

We recommend that you use Bluehost hosting services. Simply purchase the hosting from them and set up WordPress to host your site. Further you can use GUI tools for website builder in your WordPress Dashboard.

Note: - If these methods doesn't work with your shared hosts then ask for support from your hosting provider.

How To Increase Maximum File Upload Size In WordPress
There are total 5 methods to increase maximum upload file size. You can try anyone according to your comfort. 

1. By Editing Functions.php File 
You can increase file upload limit by making some changes in your theme function file. You just need to paste a short code into it and you're done. Follow the following step by step process.
  • Navigate to your WordPress dashboard.
  • Now click o Appearance tab from sidebar.
  • Then go to Editor and click on functions.php.
  • Copy the following code and paste it in above file.
@ini_set( ‘upload_max_size’ , ’64M’ );
@ini_set( ‘post_max_size’, ’64M’);
@ini_set( ‘max_execution_time’, ‘300’ );
  • Save the file and that's it.
2. Edit Your .htaccess File
Some users have claimed in forums that by editing .htaccess file in root directory we can lift limit. Navigate to your root folder and search for .htaccess file if it's not there then create one. Now just copy the following code and paste it there. 

php_value upload_max_filesize 1000M
php_value post_max_size 2000M
php_value memory_limit 3000M
php_value max_execution_time 180
php_value max_input_time 180

3. Edit PHP.INI File
If above method doesn't work for you then try to edit php.ini file in your directory. Login into control panel and access web directory. Then search for this file. If you don't see one then you're on shared hosting. Just create a new file and paste the following code in it.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Save the file. If 64 doesn't work then try a little less amount.

4. Edit wp-config.php File
Access wp-config.php file and edit it. 

define(‘WP_MEMORY_LIMIT’, ‘3000M’);

5. Using WordPress Plugin
It's one of the easiest way to increase max file size limit. Just download the plugin and activate it. 
If you're still having any issue then please let us know. Method other than given above is appreciated.


Post a Comment