nginx-upload-progress-module icon indicating copy to clipboard operation
nginx-upload-progress-module copied to clipboard

0 byte file doesn't work

Open amineb3n opened this issue 14 years ago • 1 comments

Hello, First of all thank you for this great plugin. I have encountered a bug when someone try to upload an empty file. The state of the upload stay at the value 'Starting'. Thank you.

amineb3n avatar Feb 05 '11 23:02 amineb3n

I believe it is by design. We mark an upload as 'done' only when the connection enters the cleanup state in nginx. But when an upload starts we don't immediately get its size, so we assume that "uploaded = 0" and "length = 0" means that the connection hasn't yet started. It is possible though that uploading a 0 byte file never ends up in the nginx cleanup codepath... I'm unfortunately unsure about what to do...

masterzen avatar Feb 12 '11 16:02 masterzen