Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0 byte file doesn't work #9

Open
amineb3n opened this issue Feb 5, 2011 · 1 comment
Open

0 byte file doesn't work #9

amineb3n opened this issue Feb 5, 2011 · 1 comment

Comments

@amineb3n
Copy link

amineb3n commented Feb 5, 2011

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.

@masterzen
Copy link
Owner

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants