In normal WordPress hosting, they allow to upload normally 2MB files in media library. But this is not enough for some big content site. In this article, we will show you how to increase maximum file Upload size in WordPress without using any type of plugin.

1) function.php File

By simply putting the below code in theme’s function.php file, you can increase the upload size:

@ini_set( 'upload_max_size' , '128M' );
@ini_set( 'post_max_size', '128M');
@ini_set( 'max_execution_time', '600' );

 

2) PHP.INI file

Check PHP.INI file in root directory. If no file exists than create one with same name. After that simply put the following code in this file :

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Sometimes it may not work due to hosting settings.

3) .htaccess file

You can also increase Maximum file upload size with .htaccess file. It is located in WordPress’s root directory. Simply put below code in this file.

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

    I truly love your website.. Very nice colors & theme.
    Did you develop this amazing site yourself? Please reply back as I’m
    planning to create my very own website and would love
    to find out where you got this from or what the theme is named.
    Thanks!

  • anonymous

    Hello there! I simply want to give you a
    huge thumbs up for your excellent info you’ve got
    here on this post. I will be returning to your web site for more soon.

  • anonymous

    you’re really a good webmaster. The web site loading speed is amazing.
    It sort of feels that you’re doing any distinctive trick.
    Also, The contents are masterpiece. you have performed a wonderful job in this subject!

  • Derek

    It is the best time to make a few plans for the future and it’s time to be happy.

    I have learn this publish and if I may just I want to
    suggest you few fascinating things or advice.
    Maybe you could write subsequent articles referring to this article.

    I want to read more things approximately it!

  • anonymous

    Hey there! Would you mind if I share your blog with my myspace group?
    There’s a lot of folks that I think would really enjoy your content.
    Please let me know. Thanks

  • anonymous

    Nice blog here! Also your website a lot up very fast!
    What web host are you the use of? Can I am getting your associate
    hyperlink on your host? I want my site loaded up as quickly as yours
    lol

  • anonymous

    I’m really loving the theme/design of your website.
    Do you ever run into any web browser compatibility problems?
    A couple of my blog visitors have complained about my website
    not working correctly in Explorer but looks great in Safari.

    Do you have any suggestions to help fix this issue?

  • essay writer

    you’re actually a good webmaster. The website loading speed is incredible.

    It kind of feels that you are doing any unique
    trick. Furthermore, The contents are masterwork.
    you’ve performed a great activity in this matter!

  • anonymous

    You can definitely see your skills within the work you write.
    The arena hopes for more passionate writers such as you who are not afraid to mention how they believe.
    At all times follow your heart.

  • Adrianna

    Wow, wonderful blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of your site is great, let alone the content!

  • Visitor

    Magnificent goods from you, man. I have be aware your stuff prior
    to and you’re just too great. I actually like what you have
    obtained right here, really like what you’re saying and the way in which you say it.
    You are making it enjoyable and you continue to care for
    to stay it smart. I can’t wait to learn much more from you.
    That is really a great website.

  • http://Stiangi.si

    I absolutely love your blog.. Very nice colors & theme.
    Did you develop this website yourself? Please reply back as I’m trying to create my own personal site and would like
    to know where you got this from or what the theme is called.
    Thank you!

  • elescuderofiel

    It’s remarkable to visit this web page and reading the views of all friends regarding this post, while I am also eager of getting knowledge.

  • Web.Et126.Cn

    Very good info. Lucky me I ran across your website by chance (stumbleupon).
    I have book marked it for later!

  • Banjunara.Com

    Thankfulness to my father who stated to me regarding this webpage, this weblog is genuinely awesome.

  • Marketstrom.Gr

    Great article, exactly what I was looking for.

  • Http://Banjunara.Com/

    I rarely leave a response, however I looked at a ton of comments on How to Increase the Maximum File Upload Size in WordPress – Code Canal.
    I actually do have a couple of questions for you if it’s okay.
    Is it just me or does it look like a few of the responses come across as if they are
    left by brain dead people? 😛 And, if you are posting at
    other places, I would like to keep up with you.
    Would you list of every one of your social community sites
    like your Facebook page, twitter feed, or linkedin profile?

  • Elida

    I was suggested this blog by means of my cousin. I am now not sure whether or not this put
    up is written through him as no one else recognize such detailed about my difficulty.
    You’re incredible! Thank you!