Unable to upload file using application or attach it in webmail: 413 Request Entity Too Large

Created:

2016-11-16 13:07:31 UTC

Modified:

2017-05-11 08:10:28 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to upload file using application or attach it in webmail: 413 Request Entity Too Large

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Unable to upload file using Application or attach it in webmail:

following error appears:

413 Request Entity Too Large

Cause

Upload restriction in Nginx configuration.

Resolution

  1. Add the following line to /etc/nginx/nginx.conf in http section:

    client_max_body_size 100;
  2. Restart the Nginx service:

    # service nginx restart
Have more questions? Submit a request

3 Comments

  • 0
    Avatar
    adrianTNT

    I am getting the same error after I did this.

    Editing the right config files of apache, nginx and fcgid variables is always a guessing game with Plesk, this article too.

     

  • 0
    Avatar
    Nikolay Zhmuk

    Hi, could you clarify what value you specified for client_max_body_size parameter and did you try to increase it when you get an error once again?

  • 1
    Avatar
    adrianTNT

    I remember I tried with this value in nginx.conf:

    client_max_body_size 0;

    trying to disable the limit, but it had no effect, another value I tried was client_max_body_size 512M; (I now see that this article is not showing the "M" after number), not sure if that is correct.

    it worked once I edited panel.ini with instructions from another article. 

    I think this value was overwritten by the individual vhost files created on each domain folder because a default client_max_body_size value was still written there by plesk regardless of nginx.conf

Please sign in to leave a comment.