increase maximum file upload size in wordpress

How to increase maximum file upload size in WordPress Website

Many times when we are working on WordPress we come across an error, whether we are uploading a theme or whether we are uploading a plugin the error that come across the website developer is that the maximum upload size is 2 MB and we are trying to install a file more than 2MB now to overcome this error this article will help you.

WordPress automatically shows the maximum file upload size limit when you are uploading files in it.

increase maximum file upload size
increase maximum file upload size

5 best ways to increase the maximum upload size in WordPress

  • Create changes in Theme Functions File

Just add the following code in theme’s functions.php file & you can increase the upload size:

@ini_set( ‘upload_max_size’ , ’64M’ );

@ini_set( ‘post_max_size’, ’64M’);

@ini_set( ‘max_execution_time’, ‘300’ );

your maximum uplaod size will increase .

  • Create or Edit an existing PHP.INI file

For this method, we need access to Cpanel or FTP manager

In most cases, if you are on a shared host, you will not be able to see a php.ini file in your directory. If you can’t see one, then just create a file called php.ini and upload it in the root folder.

In that file just add the following code:

upload_max_filesize = 64M

post_max_size = 64M

max_execution_time = 300

Remember if 64 doesn’t work, then try 10MB (sometimes that also work).

  • .htaccess Method

Many have also tried the .htaccess method where by modifying the .htaccess file in the root directory, you can increase the maximum upload size in the WordPress site. All you have to do Edit the .htaccess file in your WordPress site’s root folder and

add the following code:

php_value upload_max_filesize 64M

php_value post_max_size 64M

php_value max_execution_time 300

php_value max_input_time 300

your maximum file upload size will increase

  • Try Plugin

If you don’t want to do it manually, there is a plugin for that. You just need to find out the right plugin that is compatible with your current WordPress version.

IncreaseUploadMaxFilesize is a plugin that might help you.

  • Contact hosting provider

Contact your hosting provider customer care and ask them to increase the upload size for you


We hope this article helped you increase the maximum file upload size in WordPress.

Find More

How to Choose a Perfect Niche for Your Blog: The Importance of Finding the Right Topic
When it comes to blogging, it's important to find a niche that …
What is Hashtag
Hashtags are an important part of social media, and they can be …
Digital Marketing Quiz: Test Your Skills!
Think you know all there is to know about digital marketing? Test …
Standard Benefits of Digital Marketing
Are you looking to learn digital marketing? There are many different aspects …
How to Do Keyword Research for SEO
If you're new to SEO, one of the first things you need …
How to Search on Google
Whenever we want to look for something on the internet, we always …
Google Trends: Understand the Power of Google Trends
Google Trends is a great way to see what people are searching …
Looking for a plagiarism checker? Look no further than our blog to first understand what is a plagiarism checker!
Are you worried about turning in your next paper? Don't be! There's …
The AIDA model is a classic marketing model that can be used …
Digital marketing AISAS Framework
Attention, Interest, Search, Action, Share A new Consumer Behaviour Model Digital marketing …
6 Significant Benefits of Organic SEO for Business Growth
Search engine optimization, or SEO, is a digital marketing approach that involves …
The Beginner Guide For Digital Marketing
The beginner Guide for Digital Marketing is jam-packed with tips and strategies …

Sharing is caring!

14 thoughts on “How to increase maximum file upload size in WordPress Website

  1. terrencebentley

    I like reading through an article that can make wordpress developer think.
    Also, thank you for allowing for me to comment!

  2. wendel lbresnaha

    You can certainly see your skills within the work you write.
    The sector hopes for even more passionate writers like you who are not afraid to say how they believe.
    All the time follow your heart.

  3. jardine

    I’m not that much of a internet reader to be honest but
    your sites really nice, keep it up! I’ll
    go ahead and bookmark your website to come back later.
    All the best

  4. johnnienune

    It is perfect time to make some plans for the long run and it’s time to be happy.
    I’ve read this post and if I may just I wish to recommend
    you some fascinating things or advice. Maybe you can write subsequent articles referring to this article.
    I wish to read more issues approximately it!

  5. geneva

    It is in reality a nice and helpful piece of info.
    I am satisfied that you just shared this helpful info with us.
    Please keep us informed like this. Thank you for sharing.

  6. edythe

    Thanks for finally writing about > How to increase maximum file upload
    size in WordPress Website – Institute For Digital Education < Liked it!

  7. monte

    I’m extremely impressed with your writing talents and also with the format to your blog.
    Is this a paid topic or did you modify it yourself?

    Anyway stay up the excellent high quality writing, it’s uncommon to peer a nice blog like this one nowadays..

  8. floyd

    It’s in reality a great and helpful piece of information. I’m happy that you just shared this helpful information with us.
    Please stay us informed like this. Thank you for sharing.


Leave a Reply

Your email address will not be published.