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

remove uploaded file when server got 400 or 499 error during resumable upload #111

Open
WraithKim opened this issue Oct 13, 2018 · 0 comments

Comments

@WraithKim
Copy link

WraithKim commented Oct 13, 2018

Hi, I am using nginx-upload-module in my web server. And thank you for this awesome module!
But I had some trouble with resumable upload.

I implement chunk file upload using jQuery-File-Upload. But when I disconnect upload session for resumable upload test, nginx returns 400 or 499 error.

This is normal error handling but I set the upload_cleanup 400 404 499 500-505; on my server config, so my nginx removes partially uploaded file. Therefore, even if i resume uploading, I got incompleted file.

Temporary, I change my config to upload_cleanup 404 500-505; . But is it right way?

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

1 participant