increasing the upload file size limit in wordpress media library

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 increaze that you should make some changes in your wordpress code.

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

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

Incoming search terms:

You may like following Articles!

20 thoughts on “increasing the upload file size limit in wordpress media library

  1. Which hosting service you are using. You need to check with your hosting provider. How much maximum file size hosting service provider is offering that is very important.

    If your hosting provider is not giving you the permission to adding the custom setting then this code will not work.
    This code will work for 90 percent hosting services.

  2. Thanks, going to try this out on my blog! Sucks that WordPress just doesn’t allow us to change the settings, and go through all of this.

    But thanks Anyway trying it out now..

  3. Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>