Increase maximum file size upload limit in WordPress 2016

maximum file size upload limit, Easypressit. com

Tweak your WordPress to increase the maximum file size upload limit

Yes there is an upper limit to the file size which can be uploaded to WordPress. This maximum file size upload limit is decided by your hosting service. Try these methods to increase the upper limit.

Your permitted maximum file size upload limit is usually shown in the media library > add new page as shown here.maximum file size upload limit Sometimes it could be as low as 2MB. This can lead to obvious restrictions as you go on building your website. Then the need will arise to increase the maximum file size upload limit. You can always request your hosting company to do this for you. Most of the times they are helpful and will oblige. It is not the end of the world if you fail that. Here I am explaining some other ways you can increase the maximum file size upload limit. Read carefully and give it a go.If you are successful, next time when you open media library, the new maximum upload size will be shown.

Three values we need to change
upload_max_filesize = 100M
post_max_size = 100M
max_execution_time = 300

.HTACCESS Method

This is the easiest method. Go to the root of your site in teh cpanel to access the .htaccess file. Click on the file to download it and edit in the text editor to make the following changes.

At the end of the file, add this:

php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value max_execution_time 300
php_value max_input_time 300

Then re-upload the file back to the cpanel replacing the old one. In some cpanels they will allow you to edit the file internally. If yours is like that just cut and paste this at the end with your required file sizes.

EDITING OR CREATING A PHP.INI

Now, Some hosting companies would not allow you to see the php.ini file. If you see it in the cpanel, download it like before and enter the values as below

memory_limit = 100M
upload_max_filesize = 100M
post_max_size = 100M
file_uploads = On
max_execution_time = 300

If you can’t see php.ini, create a file in the text editor and paste above code in it and save it as php.ini , then upload to your site root where the WordPress files are.

THEME FUNCTIONS Method

In some themes you can edit the functions.php under Appearance > Editor in the back end of your WP installation and add this code

@ini_set( ‘upload_max_size’ , ‘100M’ );
@ini_set( ‘post_max_size’, ‘100M’);
@ini_set( ‘max_execution_time’, ‘300’ );

However, if you do it this way, it is best to create a child theme and do it in the function.php in child theme. Otherwise this will be erased with the next theme upgrade

No Comment

Leave a Reply

Sorry, is this not what you wanted?

Just tell me what you are looking for !

I will mail them to you, quick as a flash.

Thank you!

Welcome to Easypress it family

Hey ! Glad you are here.

I love sharing these with you all.
Get more free stuff like this even before they are published.
Come join the rest of my buddies.