guy coding

How to Increase WordPress Max Upload Size: A Step-by-Step Guide

More than 54,000 plugins are yours for the taking if you own a WordPress-powered website! This means, you can download and install them all you want.

You can optimise your site for optimum performance. From the most popular ones such as Yoast and Jetpack and everything else in between, just take your pick.

Unfortunately, though, there’s a thing called a low upload limit. And it can get in your way.

It can keep you from getting your hands on those plugins. The same is true when installing themes and using media uploaders to upload files.

Also, this issue becomes an even bigger one if you’re uploading images and videos on your site!

Well, if you’re wondering whether you can do something about it, wonder no more. Of course you can!

In this post, we’ll walk through the steps on how to increase WordPress max upload size. This way, you won’t experience any limits when it comes to the files you need and want.

Step 1 – Check your max upload limit in WordPress

Adding images to your post increases its value. Facebook posts with their share of images, for one, see 2.3x engagement!

The problem with this, though, is you can go overboard. You can upload all sorts of images and WordPress doesn’t allow it.

Luckily, there’s a workaround.

Every time you upload images or media, WordPress automatically shows you the max upload limit, right? Well, you can use this info to either decrease the file sizes you’re about to upload or increase it!

To show you how to find out about this limit, just go to your WordPress site’s dashboard. On the sidebar, open Media and choose Add New.

Add New Media in WordPress

A new page will then load. Along with allowing you to upload new files, it is where you can find the Maximum upload file size.

If you’re fine with this file size limit, you should leave it as it is. But if you sometimes get an internal server error when uploading images, this could be the problem.

You could be uploading images that are too big for your site to handle. Therefore, you should make some changes.

Step 2 – Choose a method

There are different ways to increase the max file upload size limit on your WordPress site. Each one is simple since all you need to do is access certain folders and open an editor to paste a few lines of code!

Remember: it’s important to be careful when making changes using each method. Avoid doing a rushed job since you can drastically impact your site and cause it to crash.

Edit the functions.php file

Since your objective is to change the file upload limit, tweaking the functions.php file will do the trick. This file’s purpose is to put in custom functionality to your chosen theme and to your site as well.

So here’s how you go about it:

On your WordPress dashboard, select Appearance. Then load Theme Editor.

Under Theme Files, select functions.php. When it loads, paste the following code:

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

And click Update File.


Modify the .htaccess file

Using the .htaccess method is also as simple. After all, the job of the .htaccess file is to override your WordPress installation’s general settings.

To begin, you need the help of an FTP client. FTP clients are programs that let you transfer files to and from a web server and a computer.

Once you have access, go to your site’s root directory. Using an editor, open the .htaccess file and into it, paste 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

Modify the PHP.INI file

This serves as the configuration file (default) for running any application that requires PHP. You can use it to control different variables such as file upload sizes.

You can edit it once you can access the file. To do that, you will also need an FTP client.

Go to your site’s root folder. Then open the php.ini file using an editor and into it, paste the following code:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Final thoughts

Increasing the file size limit for your WordPress site using the methods above is simple. You can pull it off in a matter of minutes!

The catch? They might not work especially if you’re on a shared hosting plan.

On the bright side, there’s a solution. Just contact your web host.

Fill them in on the situation and ask for help. Hopefully, they can fix the issue for you in no time!

If your main goal is to generate more sales to your business, increasing the file size upload limit is a surefire way to helping you out. That, and tweaking other parts of your website to make it more functional.

But if you worry about the troubleshooting process, it looks like you won’t achieve it.

Lastly, if you want to know how to defend your site from hackers, improve your website speed, get free uptime monitoring and learn tactics used by WordPress experts check out our free 7 day email course.

Exclusive 7 Day Course

Defend your site from hackers, improve your website speed, get free uptime monitoring and learn tactics used by WordPress experts

Many thanks for subscribing.

Something's not right.

About Christopher Jan Benitez

Christopher Jan BenitezChris is a professional content marketer and writer. He has helped small businesses achieve their goals by implementing a robust content strategy that emphasises unique selling points and promoting created content using effective online channels and methods.