How to Increase Maximum File Upload on WordPress

Last updated on
Jun 3, 2020

WordPress has a maximum file size you can upload. This restriction doesn’t apply only for media but also plugin. If the size of the plugin you want to install is larger than the maximum size allowed by WordPress then you won’t be able to install it via dashboard. The solution is you can install it manually via FTP or increase the maximum file upload on your WordPress.

The restriction of the maximum file upload itself is not determined by WordPress. Instead, it depends on the configuration on the hosting provider you use. So, if you want to increase the maximum file upload on WordPress, you can ask your hosting provider to do so. Alternatively, you can create a php.ini file on the root directory of your WordPress installation and add the following code.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

If you use a VPS or even a dedicated server, you don’t need to create a php.ini file as it is already exist upon the PHP installation. In most cases, this file is located on the /usr/local/php directory. Some control panels, including CentOS Web Panel, already have a feature to make it easy for you to edit the php.ini file. The line you need to edit is,

upload_max_filesize = 2M

Replace the number of 2 to increase the maximum file upload and don’t forget to save the change.

This page may contain affiliate links, which help support the project. Read our affiliate disclosure.

Editorial Staff

Turn Your WP Knowledge into revenue ♻️

With the right, algorithm-proof blogging approach.

learn more

Want to turn your WordPress knowledge into sustainable revenue?

Where should we send the template?

Thanks! Please check your inbox to confirm.