If you’re reading this article, then you’ve probably just tried to upload a file to WordPress and are on upload limit your site failed. This can be quite annoying, especially when the file has to be uploaded and you can’t compress it any further.
If that’s the case for you, then it’s time increase your WordPress upload limit. Don’t worry, it’s all relative uncomplicated and fast to do. This article shows you a lot of simple ways how you can increase your WordPress upload limit yourself. Let’s get started right away…
Table of Contents
- WordPress upload limit simply explained
- Find out the WordPress upload limit
- Option 1 – Increase upload limit without plugin
- Option 2 – Increase upload limit with plugin
- FAQ – Frequently Asked Questions
1. WordPress Upload Limit simply explained
The WordPress upload limit can be annoying, but it is a sensible one security measure your website host. This limit has nothing to do with WordPress and therefore cannot be changed in the WordPress settings.
Your hoster sets this upload limit to protect their server and ensure its efficient work. Without this upload limit, the users of the server could flood it with huge uploads and the efficiency and speed of the server would suffer enormously.
However, many hosters set upload limits that are far too low. If this is the case for you, then you can use one of the methods below to increase your WordPress upload limit.
2. Find out the WordPress upload limit
So that you can decide whether it makes sense to increase your WordPress upload limit or whether you would rather compress the file to be uploaded, you should Find out what your upload limit is. If the limit is basically high enough for you, then it might be better to make your file smaller.
If you open your library “Add file” click, then your upload limit will be shown under the “Select files” button displayed. there it says “Maximum file size for uploads: xxx MB.”.
If your limit is 2 MB or 5 MB, then it makes sense to increase it. at all inclusive for example, the upload limit is 200 MB, which is usually very good.
You always have to keep in mind that too many very large files reduce the speed of your website and thus lead to a worse user experience. Therefore you should compress your files as much as possible and not set an upload limit that is too high.
3. Option 1 – Increase upload limit without plugin
If you change files on your WordPress website yourself, it always makes sense to back up your website beforehand.
To edit the files mentioned below you can use any text editor or the online tool XAMPP.
a. Ask host for help
The easiest and most convenient way to increase your WordPress upload limit is yours Ask web host for help. Depending on the hoster, this is not necessarily the fastest way.
Either you call your hoster or you write him an email asking you to increase your upload limit. You simply enter your desired limit and as soon as your request has been processed, you should no longer have a problem with the WordPress upload limit.
b. Via .htaccess file
Before you die .htaccess file change, you should definitely consider one backup make of her. If something goes wrong, you can replace the broken file directly.
If you do YoastSEO or that rank math plugin for your website, then you don’t have to search for the .htaccess file via your FTP access.
at YoastSEO you can find under “tools” the “File Editor”, which allows you to edit the .htaccess file.
rank math gives you the opportunity to do the same below “General Settings” to do.
Do you choose the path of yours? FTP access (e.g. using FileZilla), then you will find the .htaccess file in the WordPress main directory.
In this file you add the following lines of code either at the very beginning or at the very end (you can adjust the upload limit individually):
php_value upload_max_filesize 200M php_value post_max_size 200M
c. Via php.ini
Not every hoster grants its customers access to the php.ini file. However, if you can access it, you can also find this file in the main directory and you can insert the following code:
upload_max_filesize = 200M post_max_size = 200M
i.e. Change PHP options in cPanel
Your host uses it cPanel, then this is probably by far the easiest way to increase your WordPress upload limit. Because with this method you don’t have to insert any code.
To do this, you either search for in the dashboard of your hoster “Software” And then to “Select PHP version” or possibly right after “Select PHP version”.
Now you will find a lot of setting options. To increase the upload limit, you contribute your desired limit “post_max_size”, “upload_max_filesize” and “memory_limit” one.
e. Via the functions.php file
the functions.php file can be found with the FTP access in the folder of your theme (wp content > themes > [dein Theme]). Here, too, you should enter before making any changes to be on the safe side make a backup.
In the functions.php file you can increase your WordPress upload limit by insert the following code:
@ini_set( 'upload_max_size', '200M' ); @ini_set( 'post_max_size', '200M');
It should then look like this:
f. Via wp-config.php
If you can’t find the functions.php file, you can set your upload limit using the wp-config.php file to change. This is easily found via FTP in your website’s root directory.
You can increase your limit with the following code (you can adjust the number to your individual needs):
G. WordPress multisite settings
if you one WordPress Multisite owns, then you can increase your upload limit quickly and easily without a code by using the “Maximum file size of an upload” under “Settings > Network Settings” change to your desired size. You must specify the size in kilobytes.
If your change has no effect, this is because you cannot increase your upload limit above the limit specified by your hoster. If you want to do this, you need to contact your host’s support.
4. Option 2 – Increase upload limit with plugin
In order to increase your WordPress upload limit, it is actually not necessary plugin to use. Of course, if you don’t want to work with code, that’s a legitimate option.
However, you must note that you cannot increase the upload limit specified by the host with a plugin, but can only make changes within this specified framework. However, if you want to increase the limit beyond that, you must either contact the host or use one of the methods above.
a. Increase Maximum Upload File Size
After installing and activating the plugin Increase Maximum Upload File Size you can find it under “Ideas” again.
The handling is very simple. you choose at “Choose Maximum Upload File Size” Simply select your desired size and you’re done.
If you want to use a plugin to increase your WordPress upload limit, then I recommend you Increase Maximum Upload File Size. It is better than WP Maximum Upload File Size, which I will present to you in a moment.
b. WP Maximum Upload File Size
The plugin WP Maximum Upload File Size can be found after installation and activation in the left WordPress side menu under “WP upload limit”.
Now you can too “Choose Maximum Upload File Size” select your desired size.
Increasing your WordPress upload limit sensible For example, if your hosting provider has set the limit way too low or you have to upload important large files on a regular basis. However, you should set your upload limit don’t set it too high, otherwise the performance of your website will suffer due to your large files.
Increasing the limit is relative easy and fast to do. You just have to put a few lines of code in the right file and the problem is solved.
6. FAQ – Frequently asked questions about the topic: Increase WordPress upload limit
Does it make sense to use a plugin to increase the upload limit?
In my opinion it is not necessarily useful Using a plugin to increase the WordPress upload limit, as there are other easy ways. For such a one-off change, it is not worth cluttering up your website with another plugin.
The possibilities to increase the upload limit via code are not particularly difficult. To be on the safe side, you can make a backup beforehand.
If you really want to use a plugin, then Increase Maximum Upload File Size.
Which upload limit is optimal?
For a normal website are 200MB Optimal as an upload limit and usually completely sufficient. You should always make sure to compress your files, such as images, to increase the loading speed of your website.
However, if you own a podcast, for example, and regularly upload the audio files to your website, then a larger WordPress upload limit can make sense.