You are currently viewing How to increase the maximum upload file size in WordPress

How to increase the maximum upload file size in WordPress

Most of the time WordPress Default maximum upload file size 2 MB ,which is not enough for media files like (audio / video or a high quality pictures . in the post i will show you How to increase the maximum upload file size in WordPress.

Method 1 : via php.ini

If you have to access php.ini then you can easily set the limit . please login your cpanel then go to file manager and find php.ini then Edit the the following limitation :

upload_max_filesize = 64M

post_max_size = 64M

max_execution_time = 300

How to increase the maximum upload file size in WordPress

Or create a file with the name ‘php.ini’ in the directory where your WordPress site is installed & add the command :

upload_max_filesize = 64M

post_max_size = 64M

max_execution_time = 300

Method 2 : via .htaccess

You can increase the maximum upload size in WordPress. Open or create the .htaccess file in the root folder and add the following code:

php_value upload_max_filesize 64M

php_value post_max_size 64M

php_value max_execution_time 300

php_value max_input_time 300

Method 2 : Contact your Hosting provider

You may contact your web hosting provider , they should increase your php memory limit .

Note : Don’t try to implement all the 4 methods at the same time.

Jobair Alam Bipul

I'm Jobair Alam, a cPanel Certified WHM/cPanel server administrator and web hosting expert with over 10 years of experience in the industry.

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

HostArmada - Affordable Cloud SSD Web Hosting