05 Methods to Increase Upload File Size in WordPress 2020: Many servers provide a file size limit of 2-5 MB, which in most cases is not large enough for some files, such as audio or video files. We show you multiple strategies to help you increase the file upload limit of your site.
What is the file upload limit of my WordPress website?
To check the loading limit of your site you can do the following: Go to Media -> Add new. Below the upload button, the maximum allowed in MB will appear.
05 Methods to Increase Upload File Size in WordPress 2020
In our case the 64MB, but surely you are waiting for how to increase your upload size, so let’s get down to business.
.htaccess – (modification of this file in the root of the hosting, www or public_html folder). In case we do not have any defined value, we must add or modify these 2 lines:
- php_value upload_max_filesize 12M
- php_value post_max_size 12M
- php_value max_execution_time 300 #is not important
- php_value max_input_time 300 #is not important
Save the changes and try again.
Adding code to the php.ini to increase the load size. This method involves accessing the root folder of your WordPress website through the use of FTP. If ‘php.ini‘ is already here or if not you must create it. Just create a file titled ‘php.ini‘ and load it in the root folder.
In the ‘php.ini‘ file, add the following code:
- upload_max_filesize = 64m
- post_max_size = 64m
- max_execution_time = 300
If this particular code doesn’t seem to be working, try changing the maximum upload size, replacing 64 with 25 for example.
wp-config.php – (modification of this file in the root of the hosting, www or public_html folder). Less recommended method. Last option and the oldest. Generally it does not usually work in the most recent versions of WordPress, but to test, we offer this last option, open file edit it and add the following line:
- define (‘WP_MEMORY_LIMIT’, ‘128M’);
Hosting provider: In case you have tried the previous 3 and not of result, contact your supplier directly to request the modification or deletion of said limit.
You can follow bellow plugins:
Aso you can use below filesize comment and can change the all value easily:
1. php.ini codes
upload_max_filesize = 256M
post_max_size = 256M
memory_limit = 256M
file_uploads = On
upload_max_filesize = 128M
max_execution_time = 300
max_allowed_packet_size = 524288000
2. .htaccess codes
php_value max_input_vars 5000
php_value max_execution_time 300
php_value post_max_size 128M
php_value upload_max_filesize 128M
php_value memory_limit 256M
3. wp-config.php code
define( ‘WP_MEMORY_LIMIT’, ‘128M’ );
Do you really want to upload heavy images to WordPress?
Images take much longer to load than text. This means that if you have large images on your website, it will cost your website to load everything, so the speed will suffer. Search engines don’t like slow websites, and pages with lots of images usually don’t rank well in search results. This will affect the traffic of your website and especially the business options that you have with the project.
I understand that image-based WordPress owners (photographers, illustrators, designers …) want to upload high-quality images on their websites. But one thing is not incompatible with the other, it is possible to upload images with quality optimized so that they weigh little without losing resolution.
- The first thing I recommend is that you learn how to optimize images for the web. You can reduce the size of the files without affecting the quality of the image.
- The next thing I recommend is to use the Envira Gallery plugin to display the images from the web. Envira is capable of displaying beautiful image galleries without affecting the speed of the web. This plugin is incredibly fast, beautiful and smoothly works on all devices. In my opinion, it is the best plugin to create WordPress galleries.
Many famous websites rely on CDNs to serve static content, as is the case with images. CDNs (content delivery network) serve images of servers located around the world. This makes your images and the rest of your website load simultaneously. In addition, this practice also improves the SEO of the web and the user’s browsing experience.
In this article we have explained why the error of uploading heavy images occurs, how to fix it and the concept of uploading size images. I hope you liked it and you know how to put this into practice.