There comes a time when you need to upload a larger size file but the default file upload size limit is low as 2mb. You can increase WordPress file upload size limit either by your self or contact your hosting provider to do it for you. Following are few methods on how to do it.

cPanel (Recommended):

This is the best and easiest way. Login to your cPanel, scroll down and click Select PHP Version then select Switch to PHP options. Now scroll down and find post_max_size, upload_max_filesize and max_execution_time then change the value to your desired one.

Edit php.ini file:

If you have access to your php.ini file, search for post_max_size, upload_max_filesize and change it to 64M or the value you need. Then search for max_execution_time and change the value to 300.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Create php.ini file:

If you don’t have access to php.ini file then create a new text file and write the following values¬†in it, save it and change the file name and extension to php.ini then upload it to your WordPress root or wp-admin folder. Check whichever works for you.

upload_max_filesize = 64M 
post_max_size = 64M 
max_execution_time = 300

Edit .htaccess file:

You can also increase the upload file size limit by adding following code into 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

Contact Your Hosting Provider:

If you don’t feel comfortable trying the above methods, or the any of the above methods did not work for you, then you need to contact your hosting and ask them to increase your upload file size limit.

Muhammad Zohaib

Web Developer specializing in WordPress to develop custom themes, plugins, troubleshooting technical issues and ensuring websites are optimized for search engines and meet accessibility standards. Currently working as Lead Developer at XeCreators.

One thought on “How to Increase the Maximum File Upload Size in WordPress

  1. I have long looked for How to Increase the Maximum File Upload Size in WordPress article, it is the BEST content, Thanks!!

Leave a Reply

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

The reCAPTCHA verification period has expired. Please reload the page.