Monday, December 11, 2017

How To Increase Maximum File Upload Size In WordPress

WordPress is growing blogging platform, every day many peoples join WordPress or create a self hosted WordPress blog. In this tutorial I am going to cover that How can We Increase Maximum File Upload Size In WordPress, You just have to follow the simple steps to Increase Maximum File Upload Size for your blog. I will discuss different ways but you just have to apply only one, not all.

Must Read These:

The max media file upload size is limited according to your web hosting package, it may be very low for some hosted blogs. Sometime we upload any .zip fine or any video to the blog that is bigger in size than the limit, so we face the problem, if you are facing the problem then you are on the right place. I will show you the easiest ways to Increase Maximum File Upload Size for your WP blog. Anyhow let us discuss, how can we do that.

Increase Maximum File Upload Size In WordPress
Increase Maximum File Upload Size In WordPress

How To Increase Maximum File Upload Size In WordPress?

As you can see that in case of my blog the upload file limit is 20 MB. You can also ask your hosting providers to increase this limit, other wise follow my steps to Increase Maximum File Upload Size In WordPress.

Upload-limit-wp-blog

1. Through pHp.ini file

You can find a file in your web directory i.e “pHp.ini” to Increase Maximum File Upload Size In WordPress you have to edit this file add some additional code to this file. If you not find this then create manually one and upload it to your directory, and add the following code in both cases.

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

After pasting the code, save this file and all done, if 64MB does not work then try 10Mb, it will work.

2 .htaccess Method

This is a function file of your blog you can make many changes to your blog with this file, this file can be used to secure or optimize your WP blog. But in today’s case we will use it to Increase Maximum File Upload Size In WordPress.

Simply go to the SEO by yoast plugin > Tools > File Editor, you will find the .htaccess editor there. See the image.

edit-htaccess-file-wordpress

 

Paste the following code at the end of this file to Increase Maximum File Upload Size In WordPress.

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

After pasting the code that is given above save your file by clicking on the save button and thats it and you have successfully Increased Maximum File Upload Size for your WP blog.

3. Using theme function file : Function.pHp

This is the third method that also let you change the max upload file size limit. In this method, you are supposed to perform some changes in Theme functions. So, get to the below simple steps to get this solution for your blog too.

Go to your WordPress dashboard > Appearance > Click on Editor.

Now tap on the Function.pHp in the right sidebar, and the following code at the end of file.

More Related To WordPress:

After pasting this code click on save and now you have Increased Maximum File Upload Size through function.php method. I have described the three methods but you should just use any one of these. Because they all are for a single purpose.

This was a article about “Increase Maximum File Upload Size In WordPress Blog” I hope you’ve liked this article please share this with your friends on social media, subscribe us and like us. Give me your feedback via comments. Thanks.

About Duryab Aziz

I am Duryab Aziz a computer science student. I love to write and share ideas about Technology, Blogging, SEO and Blogging Tips. I am very passionate about blogging, I am a SEO expert with 4 years of experience in SEO and blogging. I also provide freelancing services such as anything regarding WordPress, any possible issue that you can have, ;) Like Installation, Speeding up WordPress site, On-Page SEO, Off-Page SEO and Article Writing. View my Upwork Profile here.. You can hire me now :) Just drop a single message.

Leave a Reply

Your email address will not be published. Required fields are marked *