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

Cancel upload #105

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Cancel upload #105

wants to merge 7 commits into from

Conversation

gsabran
Copy link

@gsabran gsabran commented Mar 16, 2016

Make it possible to cancel an upload request

if req
req.xhr.abort()
S3.collection.update(req.id, {status: 'canceled'});

Copy link
Owner

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?

Copy link
Author

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?

Copy link
Author

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?

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

Successfully merging this pull request may close these issues.

2 participants