It complete depend on your web hosting company that which package suite to your website. Sometime people get mostly shared hosting because of low budget or small business. But in this article i will show you how can you increase the size of media upload on WordPress easily. WordPress is best platform for website owners and i use Hostgator web hosting they are best at their services. Now it’s time to tell you these methods where you can get your solution.
I will tell you 3 methods for this issue so you can try them all one by one maybe one of method will work for you. Mostly 3rd method always work for people but you can try these all.
How To Change Upload Size WordPress
Method 1: Theme Functions File
There are so many cases where people get solution from this method and worked like a charm so please follow below method,
- Go To WordPress Dashboard
- Click On Appearance
- Click On Editor or Copy This URL & Change With Your Domain http://www.yourdomain.com/wp-admin/theme-editor.php
- Find Functions.php File on right sidebar clearly you will see this name and add below code in the end of file
@ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); @ini_set( 'max_execution_time', '300' );
Method 1: Create or Edit Existing PHP.ini File
Just go to your File Manage through your cPanel or directly from WordPress dashboard. Because now some plugins also support File Manager access directly from WordPress Dashboard. Just see the Php.ini file in root folder if you can’t see that then create a file called php.ini. When you finish creating this file then just add below code into that file and upload it to root folder.
upload_max_filesize = 64M post_max_size = 64M max_execution_time = 300
This method is also worked so many times as reported by users online. So please try this and also please change file upload size from 64MB to 10MB maybe it will work.
Method 1: Htaccess File
After trying above methods and doesn’t work for you then this is the last method and perfect. When I was in the same case tried this method and it worked for me. 99% it will work for you just follow below method,
- Just go to your root folder where you can see this file.
- Root folder is in your File Manager.
- File Manage you can access from cPanel or directly throught dashboard with plugin installed.
- Just add below code to your Htaccess file
php_value upload_max_filesize 64M php_value post_max_size 64M php_value max_execution_time 300 php_value max_input_time 300
Note: Trying all methods and they are not working for you then you must contact with your web hosting company help support. Now it’s also time to change your web hosting from Shared to something very fast. But it is also depend on your budget so i will not suggest you to change if you can’t afford it.
Please leave your comments below in comment section for any question regarding this article.