Skip to content

Cancel upload#105

Open
gsabran wants to merge 7 commits intoLepozepo:masterfrom
gsabran:cancel-upload
Open

Cancel upload#105
gsabran wants to merge 7 commits intoLepozepo:masterfrom
gsabran:cancel-upload

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