How to Increase Maximum Upload File Size in WordPress

Si Thu Phyo
Newbiesbox
Published in
2 min readMay 26, 2016

By the default, WordPress lets you to upload maximum file size to 2MB. If you only upload images, maximum file size 2MB is OK. But if you want to upload your personal files or others that are more than 2MB, you need to increase maximum upload file size. Some hosting providers setup maximum file upload size to 64MB. But if your hosting provider only setups with default file size, you can only upload file size up to 2MB. So, you can’t upload large file size such as videos, audio, etc. In this article, I will show you how to increase maximum upload file size in WordPress. See the following picture.

max-file-upload

Method1: Using Plugin

You can increase default maximum file upload size. Use “Increase Max Upload Filesize” plugin to edit maximum upload file size. Install and activate this plugin and then, go to plugin setting. Enter the amount of maximum file upload size. But you need to submit file size with bytes unit. 1MB= 1024000 bytes. If you want to increase file size to 64MB, it will be 65536000 bytes.

max-file-plugin

Method 2. Editing PHP.ini

If you have permission to edit php.ini, you can edit php.ini file. Change the value in php.ini file. If you are using shared hosting, you can’t see php.ini file. In this case, create your own php.ini file in root folder. Then, try with the following code.

upload_max_filesize = 32M
post_max_size = 32M
max_execution_time = 300

Now, I created maximum file upload size to 32M. You can edit any file size.

Method 3. Editing .htaccess file

This file locates in your root folder. But some hosting providers can hide .htaccess file. In this case, create your own .htaccess file in root directory. Try the following code.

php_value upload_max_filesize 32M
php_value post_max_size 32M
php_value max_execution_time 300
php_value max_input_time 300

In this guide, I make maximum upload file size to 32 MB. Change any values as you want.

--

--

Si Thu Phyo
Newbiesbox

I’m a WordPress developer and trainer of Web Development Class at Myanmar Tech Wave. Founder of newbiesbox.com and love in writing and playing Kyokushin karate.