Struggling with how to increase the maximum file upload size in WordPress?
The default max upload size value depends on your host, but it can be quite low in some cases. This can result in you seeing errors such as “The uploaded file exceeds the upload_max_filesize directive in php.ini” when you try to upload files to your WordPress site’s Media Library or via other upload interfaces.
Thankfully, there are some fixes that you can apply to solve the problem.
In this post, we’ll show you several different methods that you can use to increase the maximum file upload size on your WordPress site.
Many of these methods will require adding some code snippets to your site. However, we will start with a simple plugin method that might work depending on how your server is configured.
Here are the five methods that we’ll cover:
- Free plugin (code-free)
- functions.php (code snippet)
- php.ini file (hosting dashboard or code snippet)
- .htaccess file (code snippet)
- Bonus workaround – upload files via FTP
Let’s get started!
How to Check WordPress Max File Upload Size
Before getting started, here’s a quick way to check your WordPress site’s existing max file upload size.
In your WordPress dashboard, go to Media → Add New and look for the Maximum upload file size value:
If this value is smaller than the file you’re trying to upload, you now know why you’re having issues.
How to Increase the Maximum File Upload Size in WordPress
Before we get started, I want to note that whether or not some of these methods work depends on your host’s configuration. We cannot guarantee that all of the methods will work for your specific situation. But we can say that they work for many WordPress users and hosting configurations.
So, if you try these methods and find that they don’t work for you, your next step should be to reach out to your host’s support. They might be able to override whatever is causing the problem.
With that caveat out of the way, let’s get into the tutorials…
1. Use the Free Increase Maximum Upload File Size Plugin
The absolute simplest option to increase your max upload size is to use the free Increase Maximum Upload File Size plugin because it doesn’t require editing any code.
However, the plugin will only work up to the maximum upload limit set by your server. For that reason, it will only fix the problem if the issue is that your WordPress site’s upload limit is set lower than the server upload limit for some reason.
To check if it will work for you, install and activate the free plugin from WordPress.org. Then, go to Settings → Increase Maximum Upload File Size.
You’ll see the max upload size from your server as well as your WordPress site’s current site limit. You can
This article was written by Colin Newcomer and originally published on WPKube.