HomeSEOHow to Increase the...

How to Increase the Maximum File Upload Size in WordPress

Are you facing problems while uploading heavy image files, themes, or plugins to the WordPress website? You need to increase the maximum file upload size in WordPress. The minimum file upload size limit often stops you from uploading files, especially themes and plugins or images, via media unloader. This article will explain how you can quickly increase the maximum file upload size in WordPress to fix those problems.

How to Check Maximum File Upload Size Limit in WordPress?

You can quickly check the maximum file upload size limit. To check it, in your WordPress site dashboard, go to Media >> Add New page, and you will find the file upload size limit for your WordPress site.

There are three methods that I will share with you to Increase the Maximum File Upload Size in WordPress.

1. Theme Functions.php

You can increase the File Upload Size just by adding a shortcode in your theme’s functions.php file. You can perform this task by installing any Theme editor plugin, FTP, or by using CPanel. This method only works in a running theme while uploading plugins or media files like images or videos. If you are trying to upload a new theme and facing this problem, you need to follow method No. 2 or 3.

  • @ini_set( ‘upload_max_size’ , ’64M’ );
  • @ini_set( ‘post_max_size’, ’64M’);
  • @ini_set( ‘max_execution_time’, ‘300’ );

2. Edit or Create PHP.INI

In this method, you will have to access your WordPress site’s root folder (example: public_html/yoursite.com/php.ini) using the FTP or Cpanel File Manager app your hosting account.

If you use shared hosting, you will not find a php.ini file in your site’s root directory. So you need to create a new php.ini file on your PC and upload it to the root folder. Add the following code in the newly created php.ini file.

  • upload_max_filesize = 64M
  • post_max_size = 64M
  • max_execution_time = 300

This method works in most cases, but if 64M doesn’t work, then try 10MB.

3. Edit .htaccess

In many cases, methods No. 1 and 2 don’t work. So it would help if you tried to modify the .htaccess file located in your site’s root folder. Add the following code in your .htaccess file (you can add this code anywhere, in the beginning or at the end)

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

Remember that if you are using a shared hosting package, these methods would possibly not work (in my case, it worked). So you have to contact your hosting provider to increase the maximum file upload size for you.

Check out: Why is upload speed considered important sometimes?

Most Popular

More from Author

How Conducting an SEO Audit Can Improve Your Online Presence?

A strong online presence can make or break a business in...

10 Things to Consider When Crafting SEO Strategies for Niche Businesses

As a business owner operating in the digital landscape, it's essential...

7 ways Social Media Marketing can Boost Your Car dealership

Social media has undeniably become a cornerstone of our modern society,...

Share The Love: 5 Tips For Writing Awesome Guest Blogs That Will Perform Well.

When it comes to blogging today, you aren’t limited to just...

Read Now

How To Get Your Name On Top Of Google Searches?

As you know, Google is a popular search engine, and taking your brand name to the peak of its searches holds significant importance. Knowing how to get your name on the top of Google searches is critical. This is what a business, brand, or organization strives for,...

What is Direct Mail & Why It Is Still an Effective Marketing Tool

Direct mail is a tried-and-true marketing strategy now. As technology advances, businesses may prioritize digital marketing channels such as email and social media, but direct mail continues to be effective. In our article, we will define direct mail, fantastic ideas for doing it right, and explore why...

Data-driven Decisions: The role of Analytics in Effective Marketing

In today's digital landscape, data is a powerful currency that fuels strategic decision-making and drives business success—of marketing, analyzing its pivotal role in empowering businesses to make informed choices based on data-driven insights. By harnessing the power of analytics, businesses can gain a deeper understanding of their...

The Growing Challenge Of Ranking For Commercial Keywords: Overcoming Obstacles 

In the ever-evolving landscape of search engine optimization (SEO), one of the biggest challenges website owners and marketers face is the increasing difficulty in ranking for commercial keywords. Commercial keywords are those that directly relate to products, services, or industries with the intent to make a purchase....

4 Reasons to Focus More on Online Marketing

In today’s fast paced, technology-driven world, everything is changing – including the way we do business. In 2023, online marketing is all but replacing traditional advertising channels, and if you start leaning more in this direction, it will only boost your business and help you keep up...

What Are The Best Ways To Increase My Brand Awareness Online?

One of the most apt idioms to highlight the importance of brand awareness in digital marketing is: “You can lead a horse to water but you can’t make them drink.” For example, it doesn’t matter how much traffic you have heading to your website, if you have very...

How to Optimize Your Site For Mobile Users

Mobile devices have become our constant companions in today's world, and their influence on web browsing continues to soar. With growing smartphone users, ensuring your site delivers an exceptional mobile experience is crucial. In this blog, we'll unveil the best practices to make your website mobile-friendly, capturing the...

6 Best WordPress SEO Plugins for Boosting Website Traffic

Do you know why only a few websites appear at the top of search engines? The answer is ‘good SEO. If you put the needed and the right efforts into this vital part, you can grab the topmost seat on search engine results. A website is built with...

Does Email Marketing Have Any Impact On Your Search Engine Optimization?

In the world of digital marketing when there are so many different strategies available to you, it’s always worth looking for ways in which two or more methods can be used to complement one another – for example, using video marketing to increase social media engagement. But...

From Dated to Dazzling: Transform Your Website with Professional Redesign Services

The development pace of websites is skyrocketing. And in 2023, site owners can't afford to have their pages look the same for months or years on end. But how can you revamp a site such that it's worthwhile to the business? This article will show you EXACTLY how...

Top 7 SEO Trends to Increase Organic Traffic

Search engine optimization is one of the best ways to boost organic traffic; however, keeping up with its ever-evolving trends can be challenging. SEO specialists work tirelessly to stay abreast of trends in order to deliver relevant content at exactly the time users search for it - and...

How to Create Winning Content Strategy for Tech Websites

Brands may promote their wares and gain potential customers through content creation. This is particularly valid for tech businesses that market cutting-edge products to support the development of innovations. With the right content strategy in place, you can capture your intended audience at any point in the...