Home Blog How to increase upload file size limit in WordPress.
WordPress Guides · October 1, 2018 · 2 min read

How to increase upload file size limit in WordPress.

Mohammad Saiful Islam
WPExtent
How to increase upload file size limit in WordPress.

If you would to increase upload file size in WordPress site, then this article is going to help you to increase file size limit in a WordPress site. Sometimes it can be a problem for us if WordPress doesn’t permit to upload a big file / photo or something like that. So that’s why I’m going to share this with you.

There are several ways to archive that. I’m going to share all of the possible way to do that.

How you’ll check maximum file size limit of your WordPress site.

 

If you go to media ? add new then you’ll see your maximum file size limit. Also if you want to upload a feature image for your blog post you can also see that there.

First of all I’ll share how to do that without using any extra plugin then I’ll share how to do that easily with a plugin .

How to increase upload file size in your WordPress site without plugin

1 : Theme main function file ( functions.php )

On some of WordPress site by just adding some line codes in functions.php ( it’s a file of theme you’ll see that in your Theme ) . so what you’ll need to is just copy the codes and past in your functions.php

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

Note : you can define your size, I’ve just used mine as a sample.

2 : htaccess file

You can easily increase your file size limit by just adding some lines of code in .htaccess file.You’ll find the .htaccess file in your site’s root folder, just edit the file and add the the codes below,

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

 

3 : PHP.INI ( edit an existing file or create one )

If you’ve php.ini file then open it and add these line of code in that file. If you don’t have one then please create one. You’ll need to do that in root directory of your website. After creating one you’ll need to copy and past the codes below .

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

 

How to do that with a plugin ( recommended only for who doesn’t know how to edit a file in WordPress )

First of all install a plugin called “Increase max upload filesize” and you’ll have an option in your dashboard called upload max filesize click on this and you’ll see a field where you can input size in bytes such as: 1024000 bytes=1MB .

So if you would like to increase 100MB then calculate the bytes into MB, and then enter the value in the field. That’s it

Note : you can increase upto 250MB through this plugin.

Share:
𝕏 Twitter in LinkedIn

Leave a Reply

← Previous Post 10 Best Free WooCommerce Theme ( 2018 ) Next Post → How to create custom page in a WordPress site
You Might Also Like
Why WordPress Updates Matter More Than Most Website Owners Realize
May 11, 2026 WordPress
Why WordPress Updates Matter More Than Most Website Owners Realize

FacebookTweetPinLinkedIn Most websites don’t crash overnight. They quietly fall apart while no one is watching. For thousands of business owners, that slow collapse begins with a single ignored…

Essential Accessibility Tweaks Every WordPress Site Needs Right Now
May 7, 2026 WordPress Guides
Essential Accessibility Tweaks Every WordPress Site Needs Right Now

FacebookTweetPinLinkedIn Why WordPress Accessibility Matters More Than Ever Web accessibility has evolved from a “nice-to-have” feature into a business necessity. Yet over 96% of websites fail basic accessibility…

Stay in the WPExtent Loop

New articles on WordPress, SEO and digital growth — every week.

Discover more from WPExtent

Subscribe now to keep reading and get access to the full archive.

Continue reading