Uploading of big file on websites hosted in Plesk fail: client intended to send too large body

Follow

Comments

9 comments

  • Avatar
    Francesc Benavent

    In Plesk Obsidian 18.0.29, the default value for nginxClientMaxBodySize is :

    [webserver] nginxClientMaxBodySize 128m

    as stated by the "panel.ini editor" extension.

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Francesc Benavent

    You're right, I will adjust the article.

    0
    Comment actions Permalink
  • Avatar
    Michel vd Lingen

    Didn't help. Still the same issue.

    0
    Comment actions Permalink
  • Avatar
    Tobias Maffert

    same here. Still the same issue :( Any ideas? - Plesk Obsidian Version 18.0.36

    0
    Comment actions Permalink
  • Avatar
    Tobias Maffert

    I have probably found the problem. If one carries under "/var/www/vhosts/system/meinedomain.de/conf/nginx.conf" at location / also again client_max_body_size 500M; and restart nginx, it works. Can this (location area) be set via the Plesk web interface?

    0
    Comment actions Permalink
  • Avatar
    Andy Herzig

    After setting new value in panel.ini, one should execute
    # plesk sbin httpdmng --reconfigure-all 
    or
    # plesk repair web -domains-only
    instead of
    # plesk repair web -server
    actually, isn't it?

    0
    Comment actions Permalink
  • Avatar
    Benjamin Weßel

    Hello Andy Herzig,

    Thank you for pointing us to that issue in the article.

    It is now updated with the correct information.

    0
    Comment actions Permalink
  • Avatar
    Christian Langschwert

    Hello,

    i have a nearly "same" problem.. dont know how to define else ;)

    A Friend of mine in Bangladesh only can upload files smaller than 2mb. Its not depending on User, because he also testet with my admin account. But i can upload everything wit mine and also with his user.
    i changed execute time, max filesize and all this parameters.. but the filemaneger upload dont gave us any error. he tryd and found out that only smaller than 2mb files work.
    i think its maybe an hidden parameter which overrules the plesk system, because i think in plesk everything is ok now.

    maybe someone has any idea? thanks guys!

    0
    Comment actions Permalink
  • Avatar
    Patrick Hofmann (Edited )

    Hi, currently i have the problem that i cant upload an mp4 which is 200MB in size... This problem appears in WordPress. I tested this on 2 different servers with 2 different installations. A file with 100MB works just fine... 

    I have to ask, is this a bug in Plesk? I dont understand why i have to modify configuration files by hand when those settings are clearly available in Plesk. 

    However after doing this with one server the problem is not solved. Even after server restart and checking the configuration files manually i still get the error from WordPress:

    Unexpected response from the server. The file may have been uploaded successfully. Check in the Media Library or reload the page.

    And in the logfile it says 10495#0: *3333396 client intended to send too large body: 238245234 bytes

    Uploading files is a very basic function that should work out of the box... What can i do to fix this? It somehow seems that the limit of 128m is hardcoded somehow or i missed a place... I also checked the nginx.conf under the vhost and the correct values are applied...
    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request