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.
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.
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.
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:
- How To Set Up SEO By Yoast WordPress Plugin
- How To Add Meta Tags In WordPress Blogs
- How To Add SEO Friendly Permalinks 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.