increase upload file size limit in wordpress

Many people want to upload big size media in wordpress. Now with current version you can upload 10 mb file in wordpress.
If you want to increase upload file size limit in wordpress then you should make some changes in your wordpress code. We briefly explained same in article.

increase upload file size limit in wordpress

First option you need to open your functions.php file and put following code in that file.
Note: Here with this code you can upload the upto 50 mb file to your wordpress website.

ini_set('upload_max_size','50M');
ini_set('post_max_size','50M');
ini_set('max_execution_time,'300');

Open your wp-settings.php file which you can find in your root directory. Put following code in that file.

if ( !defined('WP_MEMORY_LIMIT') )
 define('WP_MEMORY_LIMIT', '500M');

Add this code following code in your .htaccess file. This file you can find in your root directory.

php_value upload_max_filesize 50M
php_value post_max_size 50M
php_value max_execution_time 300
php_value max_input_time 300
increase upload file size limit in wordpress
increase upload file size limit in wordpress

Above method is used by many web developers for increasing the file upload limit on server for PHP language.

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.