Facebook-f X-twitter
EncodeByte
Need Help!
  • How-To
    How-ToShow More
    How To Redirect Old Website To New Domain Without Losing SEO | 301 Domain Redirect
    By
    Franchbabu
    How to Fix the “Windows Cannot Be Installed to This Disk” Error
    By
    EncodeMore
    How to Check Your Laptop’s Battery Health: A Step-by-Step Guide
    By
    EncodeMore
    How to Become a Freelancer in 2025: A Comprehensive Guide.
    By
    EncodeMore
    How to Activate Windows Legally and For Free (100% Working)
    By
    EncodeMore
  • Web Development & Coding
    Web Development & CodingShow More
    How to Become a Freelancer in 2025: A Comprehensive Guide.
    By
    EncodeMore
    Top In-Demand Freelancer Niches for 2025 – Fast Growth Ahead!
    By
    EncodeMore
    🚀 10 Reasons Why Hostinger Is the Best Web Hosting Platform for Speed, Security & Affordability
    By
    Franchbabu
    How to Add “Made with ❤️” to Your WordPress Footer (No Plugin Needed)
    By
    EncodeMore
    WordPress Redirect After Login: How to Set It Up
    By
    EncodeMore
  • Code Snippets & Scripts
    Code Snippets & ScriptsShow More
    How to Hide a Class in WordPress (Easy CSS & Admin Tips)
    By
    EncodeMore
  • Website Design & UX
    Website Design & UXShow More
    10 Web Design Mistakes That Are Killing Your User Experience (and How to Fix Them)
    By
    Franchbabu
  • Make Money Online
    Make Money OnlineShow More
    How to Become a Freelancer in 2025: A Comprehensive Guide.
    By
    EncodeMore
    Top In-Demand Freelancer Niches for 2025 – Fast Growth Ahead!
    By
    EncodeMore
    Website related skillsets that you shoud have
    By
    EncodeMore
    Top Sites Like Fiverr: The Best Fiverr Alternatives for Freelancers
    By
    Franchbabu
    Best Telegram Channels For Free Paid Courses
    By
    Franchbabu
  • 🤩 Trending:
  • How-To Guides
  • WordPress & Website Development
  • Web Development & Coding
  • Windows & Software Fixes
  • Tech Tips, Tools & Tutorials
  • Computer Tips & Tricks
Font ResizerAa
EncodeByteEncodeByte
Search
  • How-To
  • Web Development & Coding
  • Code Snippets & Scripts
  • Website Design & UX
  • Make Money Online
Follow US
Made by ThemeRuby using the Foxiz theme. Powered by WordPress
WordPress & Website DevelopmentHow-To Guides

Increase the Max Upload Size in WordPress Step by Step Guide

Last updated: December 28, 2021 12:48 am
By
Franchbabu
Share

Increase the Max Upload Size in WordPress

To find out what your WordPress site’s current maximum upload size limit is, go to WP Admin > Media > Add New. As shown in the screenshot, the current maximum upload size is displayed at the bottom.

Contents
Increase the Max Upload Size in WordPress1.Create or Edit an existing PHP.INI fileIf your host doesn’t offer such a tool,2. Update .htaccess file3. Edit wp-config.php file4. Contact Your Hosting Provider to Increase the Max Upload Size5. Use a WordPress Plugin To Increase the Max Upload Size
The “Maximum upload size limit” in WordPress

1.Create or Edit an existing PHP.INI file

The php.ini file manages basic PHP configuration variables such as the maximum upload size.

Some hosts may allow you to edit the php.ini file through cPanel, which is easier than editing the file directly.

Bluehost, for example, allows you to access cPanel by clicking the Advanced tab in your Bluehost dashboard. Then, choose the MultiPHP INI Editor tool:

Then, choose the site to modify and change the upload_max_filesize directive:

If your host doesn’t offer such a tool,

In most cases, if you’re using a shared host, you won’t find a php.ini file in your directory. If you don’t see one, make one called php.ini and place it in the root folder. Add the following code to that file:

upload_max_filesize = 512M
post_max_size = 128M
max_execution_time = 3000

2. Update .htaccess file

Many hosting companies allow you to modify the PHP settings via the .htaccess file. You may use this feature to apply the php value upload max filesize rule to this file.

Open the .htaccess file and add the following code to the bottom of the file. Once you’re done, save the changes.

php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 3000
php_value max_input_time 3000

Change the numbers to the values you require. The maximum execution and input times are in seconds and may need to be increased if your internet connection is slow.


3. Edit wp-config.php file

@ini_set( 'upload_max_filesize' , '128M' );
@ini_set( 'post_max_size', '128M');
@ini_set( 'memory_limit', '256M' );
@ini_set( 'max_execution_time', '300' );
@ini_set( 'max_input_time', '300' );

4. Contact Your Hosting Provider to Increase the Max Upload Size

If you do not want to edit the files yourself, you can always ask your hosting provider to do so.

5. Use a WordPress Plugin To Increase the Max Upload Size

WP Increase Upload Filesize | Increase Maximum Execution Time

Upon activation, navigate to Media » Increase Upload Limit in your WordPress admin panel.

This brings you to a screen where you can select a new file upload size in the ‘Choose Maximum Upload File Size’ drop down. 

Then, click the ‘Save Changes’ button.

WordPress is a flexible content management system. There is always a method to accomplish a goal. You can always contact me if you are unable to find an answer to any of your WordPress-related concerns.

You may also like …

How to Change WordPress Login URL

Share This Article
Facebook Whatsapp Whatsapp LinkedIn
Leave a Comment

Leave a Reply Cancel reply

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

Popular Categories

Themes & Customization

1 Article

Troubleshooting & Fixes

1 Article

WordPress Tips & Tricks

6 Articles

WordPress Tutorials

5 Articles

Must Read

WordPress & Website DevelopmentHow-To Guides

How to Create a Private/Password Protected Post or Page in WordPress

How-To GuidesSEO Tips & StrategiesWordPress Tutorials

How To Redirect Old Website To New Domain Without Losing SEO | 301 Domain Redirect

Computer Tips & TricksHow-To Guides

How to Repair a Bad Hard Disk (Hard Disk Low Level Format)

How-To GuidesTech Tips, Tools & Tutorials

How to Remove URLs From Google Search

  • I need help with …

Starting a Blog

WordPress SEO

WordPress Performance

WordPress Errors

WordPress Security

Got A Question?

Need Expert Help?
Let CodeXcool power up your website with
custom WordPress design, speed optimization, and SEO!
🚀 Get Started

You Might also Like

How-To GuidesWeb Development & Coding

How to Build a Website With ChatGPT: Using AI to Create a WordPress Site From Scratch

Website Design & UXWordPress Tips & Tricks

10 Web Design Mistakes That Are Killing Your User Experience (and How to Fix Them)

Front-End DevelopmentWordPress & Website Development

Elementor COOL Button Hover Effect | Gradient Button Effect

WordPress & Website DevelopmentBeginner ProjectsHow-To Guides

How To Disable Emojis In WordPress

EncodeByte

© 2025 EncodeByte – Discover expert tech tutorials, coding guides, troubleshooting solutions, and free tools. Simplify technology, build smarter, and learn faster with us.

About Us / Privacy Policy / Contact Us

Latest News

  • Coming Soon
  • Coming Soon
  • Coming Soon
  • Coming Soon

Services

  • Coming Soon
  • Coming Soon
  • Coming Soon
  • Coming Soon

Looking for custom web development or maintenance?

Check out our parent team at [CodeXcool.com] 🚀
— Let's build together!
Request a Quote
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?