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

Add a "cancel upload" feature #15

Open
boulaycote opened this issue May 1, 2014 · 0 comments
Open

Add a "cancel upload" feature #15

boulaycote opened this issue May 1, 2014 · 0 comments

Comments

@boulaycote
Copy link

After implementing this solution for my own project, I was curious as how one would implement a "cancel upload" feature.

I had imagined a cancelled flag telling the meteor-file to stop reading/uploading would do the trick.

Say I'd do something like this. Uploads being the collection of meteor-file being uploaded

Uploads.update(this._id, {
    $set: {cancelled: true}
});

and then within the meteor-file object

var stop = this.collection.findOne(this._id).cancelled
...

But this would return undefined.

Any ideas?

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