Increase Media File Maximum Upload Size in WordPress Step by Step Guide

1. Update .htaccess file

If your web server is using Apache and PHP is set as an Apache module, then you can add a few lines of code in your WordPress .htaccess file to increase the max upload size in WordPress.

To access your .htaccess file, connect to your server via FTP client and navigate to the folder where WordPress is installed. Open up .htaccess file in a code editor or Notepad and add the following lines.

php_value upload_max_filesize 64M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300

This will define the max upload size in Megabytes. Replace the numbers as per your requirement. The max execution time and max input time are in seconds. The execution time defines the limit of time spent on a single script. Choose a number that is suitable for your site.

2. Plugin Method

Not everyone is a fan of writing code or accessing root files using SSH or FTP. For that situation, the plugin comes in handy and luckily there is a WordPress plugin available for increasing WordPress upload size. The plugin we will be using is the Increase Max Upload Filesize plugin.

Go to your WordPress DashboardPluginsAdd new, search “Increase Max Upload Filesize” then activate and install the plugin. Once installed, go to plugin settings and simply enter the value for upload size.


  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Shared Hosting Plan FAQ

Q. How long does it take to setup my account?A. Accounts are setup instantly after you have...

I created an add-on domain, what nameservers do I use?

When creating an add-on domain, parked domain for your account, you will need to use the same...

How do I contact Cunhost support?

You may use the web chat support or open the support ticket in your client dashboard here:...

Domain Nameserver - Malaysia cPanel Server

What is my nameserver?   After subscribing the hosting service, you will receive an email "New...