root-gg / plik

Plik is a temporary file upload system (Wetransfer like) in Go.
https://plik.root.gg
Other
1.47k stars 168 forks source link

upload works on one device, but not from another #469

Open e0xify opened 1 year ago

e0xify commented 1 year ago

Hello,

some strange issue here, using plik default configurated. no proxypass via nginx or apache2 for me everything works fine, uploading / auto zipping etc.

for another user / another device / another slower network nearly every image upload failes with:

[02/14/2023 14:09:14][CRITICAL][xxxx][YrUxmUrSOGSSiasC][B 009.jpg]] unable to read data from request body : %s -- client disconnected -- 500 [02/14/2023 14:09:14][INFO ][[xxxx][YrUxmUrSOGSSiasC][B 009.jpg]] POST /file/YrUxmUrSOGSSiasC/0Kx2F7TB5jreSQ0g/B%20009.jpg [500 Internal Server Error] (1m1.422821315s) [02/14/2023 14:09:14][CRITICAL][xxxx][YrUxmUrSOGSSiasC][B 008.jpg]] unable to read data from request body : %s -- client disconnected -- 500 [02/14/2023 14:09:14][INFO ][[xxxx][YrUxmUrSOGSSiasC][B 008.jpg]] POST /file/YrUxmUrSOGSSiasC/EgHzTSAMtLLYefj2/B%20008.jpg [500 Internal Server Error] (1m1.423079845s)

We also tried sharing the files with wetransfer and i uploaded them, worked like a charm, no issues - same files.

Any ideas?

camathieu commented 1 year ago

If the connection fails / timeout / closes the upload will indeed fail, there is no resume mechanism.