How to Increase the Maximum File Upload Size in WordPress 2017

How to Increase the Maximum File Upload Size in WordPress 2017 Maghow wm
Written by Editor

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,

  1. Go To WordPress Dashboard
  2. Click On Appearance
  3. Click On Editor or Copy This URL & Change With Your Domain
  4. 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,

  1. Just go to your root folder where you can see this file.
  2. Root folder is in your File Manager.
  3. File Manage you can access from cPanel or directly throught dashboard with plugin installed.
  4. 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.






  • Was this article helpful?
  • Yes   No

About the author


Shan is young Entrepreneur, Developer, and Web Designer living in Dubai, United Arab Emirates. I have crazy passion to help people on the internet. He is the founder of MagHow, the leading source of latest information. Sharing his own practical life experience MH. just get in touch with me social media.