The upload limit in WordPress throws a spanner in the works for many a thick image, video or a new podcast episode. Especially nowadays, it can happen that you want to load slightly larger files into your WordPress installation. Here I show you how to do that WordPress upload limit can increase.
Ways to bypass the WordPress upload limit without increasing it
If WordPress hits you with an error message when uploading a file, it’s quite annoying. After all, now you have to invest time to solve the problem.
However, you have to know that this error only applies if you want to upload a file directly via the backend (i.e. the admin area) of your site.
This applies to various media files. But also on themes and plugins that you want to upload.
Do you need a higher upload limit to load videos on your website?
In the meantime, videos on websites are no longer a rarity. The competitive pressure to create ever more interactive content and to offer multiple media variants in your articles makes videos almost mandatory.
If you want to increase the upload limit of your WordPress installation to include videos, I always advise you to go via YouTube.
YouTube is an absolute master at compressing videos and has the necessary resources to quickly play these videos out to your visitors.
Embedding videos in your WordPress content is no longer a problem. All you have to do is copy the URL to the video into your post and WordPress will take care of the rest automatically.
Does the error occur when trying to install themes or plugins?
The upload limit often stands in your way when you want to install a new theme or plugin.
Since WordPress only reacts to an upload via the backend, you can easily avoid the error by first loading the desired files onto your computer and then using an FTP program to transfer them to the server.
This completely bypasses the upload limit.
Determine your current upload limit
Before we get to work and increase your upload limit, we first need to find out how high the current upload limit is in your WordPress installation.
That’s pretty easy to find out.
- Go to the menu item in the admin area of your WordPress site media.
- choose Add file.
- At the bottom you can now see the maximum file size for uploads.
The first way is via the hoster
Most web space contracts are so-called shared hosting contracts. This means that your hoster does not provide you with a complete server, but also puts other customers on the server.
Hundreds of websites and domains are often located on just one large server.
That is the reason why almost every hoster already sets an upload limit on the server side. Otherwise, the large number of customers on the server would quickly overflow the memory.
If the upload limit has been set server-side, your best way to increase it is to contact the host. Only he can help you quickly and easily to load larger files into your project.
So my top tip would be to contact support directly and let the “guys with a clue” do it.
There are a total of three methods that you can use to increase your upload limit. It all depends on your server settings, but it might work 😉
Editing the functions.php file
Hope dies last. But in rare cases it can work that you simply edit the functions.php file of your active WordPress theme and add the following code snippet to the file:
@ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); @ini_set( 'max_execution_time', '300' );
With this entry in your functions.php you change the upload limit from the current status to a whopping 64 MB.
Increase the WordPress upload limit via .htaccess
If that doesn’t work, you don’t have to throw in the towel right away. We have more options on the pan.
One of these possibilities is a change in your .htaccess file. You can find this around the root directory of your domain. Most hosters simply call this root folder web or www.
Just add the following lines to your .htaccess file and cross your fingers that it works:
php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300 php_value max_input_time 300
In this step, too, we increase the maximum file size for uploads to a whopping 64 MB.
Increase the WordPress upload limit in a multisite environment
If you run a WordPress multisite installation, the upload limit is set centrally on the administration page. This gives you the opportunity to set your own upload limit for each network site and avoid a single network site clogging up your server.
Increasing the WordPress upload limit in a multisite administration page does not change any defaults from your hoster. It only changes your self-imposed limits. If in doubt, you can’t get around the support of the hoster.
Let’s go through increasing the upload limit for a multisite installation…
- In your WordPress dashboard, go to the menu item at the top of the admin bar My sites -> network management ->ideas.
- At the bottom of the settings page you will find a text box that says Max upload file size.
- The default file size is usually 1,500kb, which is 1.5 MB.
- Increase the file size to your liking and save the changes.
The upload limit has a right to exist on a shared server. Since many people are not concerned with correct file sizes or proper compression of images and the like, a server can quickly become very full and slow.
A quick request to your web space provider solves the problem relatively quickly. It can increase your WordPress upload limit in a matter of seconds.