-
Notifications
You must be signed in to change notification settings - Fork 74
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
Cancel upload #105
base: master
Are you sure you want to change the base?
Cancel upload #105
Conversation
if req | ||
req.xhr.abort() | ||
S3.collection.update(req.id, {status: 'canceled'}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This rocks! How about we put the xhr in the collection instead though? Is there an issue with that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dunno, can we store non json objects in the collection?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or do you mean the xhr id? (agreed that we should do that, and the xhr directly id possible) Also what do you think of calling this in delete?
Make it possible to cancel an upload request