1. Home
  2. Authoring and Development
  3. How to Increase PHP Max Upload Size

How to Increase PHP Max Upload Size

You can increase the allowed max upload size by using a PHP directive. By using this directive, you can change the max upload size on one or more directories.

To edit the PHP max upload size, you need to first have a custom php.ini or user.ini file. For more information about these files, see our article, php.ini vs user.ini. You need to choose which one you want to use before proceeding.

How to Increase PHP Max Upload Size

Once you have chosen whether you are using a user.ini or a php.ini file, you can continue to the steps below:

  1. Log in to Account Control Center (ACC)
  2. Navigate to your php.ini or user.ini file
  3. Enter the max upload size directive into the file like this:

    upload_max_filesize integer

Replace integer with the new max filesize. The integer defaults to using bytes, unless another accepted type of measurement is indicated.

Accepted Measurements:
  • Kilobyte: K
  • Megabyte: M
  • Gigabyte: G

If you use a measurement that differs from default, your max file size directive will look something like these:

upload_max_filesize = 100K

100 kilobytes is now the max upload size.

upload_max_filesize = 50M

50 megabytes is now the max upload size.

upload_max_filesize = 25G

25 gigabytes is now the max upload size.

When finished, save the file. Changes will be recognized the next time PHP starts, so you may not see changes immediately. If you want the changes to be immediate, you may need to restart your PHP processes.

Updated on October 12, 2018

Was this article helpful?

Related Articles