If you are looking for “How to increase the max upload size in WordPress?” you have hit the right spot. Here in this tutorial, I will show you how to fix this issue. Different ways to change the maximum file upload limit but it can be a little intimidating for you to choose the correct method. By the end of this tutorial, you will be able to modify the upload limit to meet your goals. So, without much ado, let’s jump onto the solution and see how easily you can increase the max upload size in WordPress. Let’s dive in!

WordPress is a big name when it comes to web development. Over 65% of websites are powered by WordPress. Right from beginners to seasoned professional web designers and developers use the WordPress content management system. WordPress comes with almost everything that you need to create your website. Whether it’s about extending the functionality of your website with the help of top WordPress plugins or using the built-in features, it is loaded with supreme quality features to empower your website in every possible way.

There are millions of WordPress users and it’s almost everybody’s favorite platform worldwide. You can easily create anything from a simple blog website to any full-fledged eCommerce website using the WordPress content management system. And that’s exactly when you need to upload images to your website. But there are certain criteria that you need to follow while uploading media files to your website. The size of the media files is the main major concern here. If the size exceeds, the media file will not be loaded and an error message displaying “max upload size in WordPress” will be displayed. Let’s learn about the means to deal with this maximum upload size in WordPress error in detail.

How to Increase the Max Upload Size in WordPress

If you have a WordPress website or an eCommerce store, you have to upload media files every now and then. Generally, you can do it directly from the library that enables you to upload images, ZIP files, GIFs, and more depending upon the requirements. Sometimes while you upload The media files you might encounter an issue of big file size. But how do we know that how big is too big to upload? If the file size you are trying to upload exceeds the maximum file size configured in the server, it will show you an error message. And the upload you are trying will not be approved.

For instance, if you are trying to upload an 18MB file Read the Media Library but the allowed maximum file size is 10 MB, then it certainly will not upload the file and will stop right there. It will show you an alert displaying that the size is exceeding. Now you need to increase the file size upload limit or you can try some other file that is small in size. And this is exactly where many beginners as well as other users get into trouble.

And there are always ways to fix this problem. But it makes sense to know why before we learn how. That means you should know how to check the max upload file size in WordPress before you learn the ways to tackle this issue.

How to Check Max Upload Size Limit in WordPress Dashboard

Before you take steps to increase the upload size limit, you should check what is the maximum limit it currently provides you. In order to check the size limit, you need to log in to your WordPress Dashboard first. Now go to Media → Add New. You don’t need to upload anything, just look at the ‘Maximum upload file size: 20 MB.’

Media file upload WordPress screenshot

Generally, this maximum upload file size is set by the hosting providers. It can be anything but yes good enough to upload images, videos, free WordPress themes,  plugins, and other useful files. However, this file size limit can be increased as and when required.

Ways to Increase Max Upload Size Limit in WordPress

Before we jump on to the solutions, it is to keep in mind that there are chances that not every method works as expected. And that’s because of the host’s configuration settings. It is possible that some of the methods that are working for one WordPress website may not work the same way for another WordPress website. However, the reason behind this can be the host configuration.

So, when you try these methods and nothing works for you, then you need to visit your host provider. They might be able to help you to increase the max upload size in WordPress.

1. Increase the max upload size in WordPress by Modify .htaccess File

By modifying the .htaccess file, you will be able to increase the max upload size in WordPress. It is an essential file that contains several configurations for your server. However, most of the host providers keep this file hidden for security reasons. In order to modify this .htaccess file, you need to locate ‘Show Hidden Files’ and navigate to the .htaccess file within the root directory of the server.

Once you find the file open it and paste the following lines of code at the end of WordPress.

php_value upload_max_filesize 128M

php_value post_max_size 128M

php_value memory_limit 256M

php_value max_execution_time 300

php_value max_input_time 300

Please keep in mind that you can change the numbers based on your needs.

2. Increase the max upload size in WordPress by Editing function.php file

Increase Max Upload Size in WordPress

Sometimes editing WordPress core files can be intimidating, especially if you are not really sure about your coding skills. Well, in that case, you can modify templates or theme files and from there you can increase the max upload size in WordPress. In order to do that, you need to head to the function.php file of the child theme.

Make sure you do have a child theme because making changes directly to your main website can sometimes lead to disastrous results. Therefore, editing the child theme will be helpful.

Here’s how you can modify the function.php file to increase the max upload size in WordPress.

  • Visit the WordPress dashboard and go to Appearance → Theme Editor
  • Now open the theme function file i.e. function.php and the following code to the file
@ini_set( 'upload_max_size' , '64M' );

@ini_set( 'post_max_size', '64M');

@ini_set( 'max_execution_time', '300' );

Once you are done pasting the above code save the changes.

In the above example code, I have chosen 64MB as the max upload size but if you want a different file size, just update the code, and you are done.

3. Increase the Max Upload Size in WordPress Using a Plugin

Using a plugin is an absolutely simple way to increase the max upload size in WordPress. Because using a plugin sets you free from updating any code on your website. All you have to do is download the plugin activated and it will start working as simple as that.

Increase Maximum Upload File Size in WordPress

The ‘Increase Maximum Upload File Size’ WordPress plugin will automatically detect the upload limit set by WordPress and by the hosting provider. However, this WordPress plugin will work only up to the maximum limit set by your web host server. It will fix the issues occurring due to the lower limit set by your host provider.

In order to check if this plugin is working for you or not all you have to do is visit the WordPress dashboard and then

Settings → Increase Maximum Upload File Size in WordPress

Here you will come across the max upload size from your server as well as the current size limit of WordPress.

However, if the maximum upload size is still too low for you you can go for other methods.

4. Configure php.ini File

The php.ini file contains the PHP configuration of the server you are using. You can find the php.ini file in the root directory of your server. Navigate to the host root directory and look for the php.ini file there. If you can’t find it directly in a file, there are chances that it is available in the hidden files for some security reasons. Thus, do check the ‘Show hidden files.’

Now, with the help of a text editor, copy and paste the following lines of code as a php.ini file

upload_max_filesize = 25M

post_max_size = 13M

memory_limit = 15M

Finally, upload this php.ini file using SSH or FTP inside the same root folder.

5. Ask Your Web Host Provider to Increase the Max Upload Size in WordPress

Keep in mind that if you are using shared hosting all these methods might not work for you. So if any of the aforementioned methods are not working for you or you are using the shared hosting then it might be a good option for you to contact your web host service provider to do that to you. Generally, all hosting companies will help you with that. Sometimes the max upload size limit is restricted by the server itself for some of the other good reasons. That also has the possibility to increase as well as decrease the size as and when required.

You can contact your host company via chat live support, phone call, ticketing system, and email. It is simple to reach your host provider to make changes in your max upload size in WordPress. And by increasing the max upload size in WordPress you will be able to include any big size images, videos, themes, plugins to your website to improve the functionality or achieve something in particular.

So, these were some of the methods using which you can learn ‘how you can increase the size in WordPress’ and by implementing them correctly, you can achieve the desired results. You can use any of the methods and see which one works for you.

Happy Web Development!

Increase the Max Upload Size in WordPress – In Conclusion

This brings us to the end of this comprehensive guide explaining how to increase the max upload size in WordPress. WordPress is a versatile content management system. There are several features using which you can build your own strong website. Furthermore, certain conditions are to be met so that everything works fine on your website. If you come across some limitations that are preventing you from doing something you need for your website then there is always a way to do it. And the aforementioned methods can get the job done effectively without a hitch. So you can get ahead with any method that you find easy to perform or capable to deliver the expected results. you must go through WordPress installation.

However, if you are using shared hosting for your website or check out best hosting providers for WordPress. If you are not sure about any of the above-discussed means to increase the max upload size in WordPress, then you anytime contact your host service provider and ask them to increase the file size for you. Moreover, if you wish you can contact the WordPress community and see if there’s any other better option discussed there that can be useful for you as well.

I hope you enjoyed reading this guide. If you still have a question on how to increase the max upload size in WordPress feel free to leave a message in the comment box below. I would love to hear from you! Also check out WordPress theme generator ,WordPress Theme Builder to create awesome looking websites

Related reading

How to move WordPress from local host to live server?

How to create WordPress theme?

How to move WordPress site to new domain?

How to move WordPress to a new host?