0 byte file doesn't work
amineb3n opened this issue · 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.
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...