How to increase File Upload size in WordPress

Do you want to increase the upload file size in WordPress? Sometimes a low file upload limit may prevent you from uploading something, via media upload or installing plugins and themes. In this article, we will show you how to easily increase the file upload size in WordPress to fix those problems.

Depending on the hosting provider and package you choose, each person will see the maximum file upload limit on the Media uploader page in WordPress. Most of it will be very low at about 2MB, some large plugins or themes you will not be able to upload.

Increase file upload size

Note: This is a guide that requires little technical knowledge. It may not work with some shared hosting, in which case you will need to ask your hosting provider for assistance. I am using VPS Vultr so it is easy to edit.

Check upload file size limit in WordPress?

WordPress will automatically show the maximum file upload size limit when you upload images or media. To test it, you can simply go to Media »Add New and you will see the maximum size limit of the upload file for your WordPress site.

1. Edit functions.php file to increase the file upload size

There are cases where we have found that just by adding the following code to the theme’s functions.php, you can increase the file upload size.

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

2. Create or edit an existing PHP.INI file

For this method, you will need to access the root of your WordPress site using FTP or File Manager for hosting with Cpanel.

In most cases, if you are using a shared host, you will not see the php.ini file in your directory. If not, create a file called php.ini and upload it to the root directory. In that file, add the following code:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

This method of increasing the file upload size works well in many cases. However, keep in mind that if 64M does not work. Try 10MB (sometimes it works).

3. Edit the .htaccess file

Some people have tried to use the .htaccess method, by modifying the .htaccess files in the root directory, you can increase the maximum upload file size in WordPress. If you don’t see it, this is why the .htaccess file cannot be found on WordPress. Then open or create the .htaccess file in the root directory and add the following code:

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

Again, it is important that we emphasize that if you are using a shared hosting plan then these tips may not work. In that case, you will have to contact your web hosting provider to increase the upload capacity. Some servers completely reject their users.

Nulled By WPHaxor

You, Will, Get 100% Safe and Virus Free Nulled Stuff

Leave a Reply

How to Customize The Login Page in WordPress

How to Set Up WordPress Error Log in WP-Config