psi-4ward / psitransfer

Simple open source self-hosted file sharing solution.
BSD 2-Clause "Simplified" License
1.48k stars 216 forks source link

Cryptic error message when upload file size exeeds maximum. #169

Open pjdevries opened 3 years ago

pjdevries commented 3 years ago

Thanx for developing PsiTransfer and making it available to the rest of us.

I'm currently playing with the docker image. It runs behind an Nginx proxy, parallel to some other docker based applications. When I triy to upload a file that exceeds the maximum allowed size, I get a rather cryptic error message:

tus: unexpected response while uploading chunk, originated from 
request (method: PATCH, url: /files/c931c909b1c3++8ebf13b8-25ff-
46b4-b8bd-c6789ebe7c86, response code: 413, response text: <html> 
<head><title>413 Request Entity Too Large</title></head> 
<body> <center><h1>413 Request Entity Too Large</h1>
</center> <hr><center>nginx</center> </body> </html> , request id: n/a)

Is this by design or something weird on my end?

kapiorr commented 2 years ago

add to nginx.conf line:

client_max_body_size 2000M; #2GB limit