Plesk

How to upload large files to a website hosted in Plesk

Question

Which web-server settings should be adjusted to be able to upload large files?

Answer

For example, to upload 3GB files to a website, adjust the following settings:

  1. Log in to Plesk.

  2. Go to Domains > example.com > PHP Settings and configure the following options:

    • file_uploads = on

    • upload_max_filesize = 3500M

    • post_max_size = 3500M

    • memory_limit = 3500M

      Note: "3500M" is just an example. Instead of "3500M" you can use gigabytes, for example "4G".

  3. Then go to Domains > example.com > Hosting & DNS > Apache & nginx Settings and add the following line to Additional directives for HTTP and Additional directives for HTTPS fields:

    LimitRequestBody 3670016000

    where 3670016000 (bytes) = 3500MB

  4. If the website for which you would like to upload 3GB files is served by nginx instead of Apache (check it at Domains > example.com > PHP Settings), then additionally apply the steps under "For case PHP is served by nginx" from this KB article to increase the nginxClientMaxBodySize value to 3500m.