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

Custom abort event listener #66

Closed
kevman opened this issue Feb 5, 2015 · 3 comments
Closed

Custom abort event listener #66

kevman opened this issue Feb 5, 2015 · 3 comments
Labels

Comments

@kevman
Copy link

kevman commented Feb 5, 2015

Is there a way to add a custom abort event listener?

@gsuess
Copy link
Contributor

gsuess commented Feb 6, 2015

No, currently there is not. But when the transfer is aborted the callback will be called with an error.

Eventually there will be a major overhaul of the client side uploader in which that feature will be added.

@gsuess gsuess added the question label Feb 6, 2015
@kevman
Copy link
Author

kevman commented Feb 6, 2015

And a way to add a callback or a hook to the existing abort event listener?
Or using the reactive "status" var?

It would be nice to execute a function after error or abort.

@gsuess
Copy link
Contributor

gsuess commented Feb 6, 2015

Yes you can do that. Just check for uploader.status() === 'aborted' in a reactive computation.

@gsuess gsuess closed this as completed Mar 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants