meteor-file icon indicating copy to clipboard operation
meteor-file copied to clipboard

Add a "cancel upload" feature

Open boulaycote opened this issue 10 years ago • 0 comments

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?

boulaycote avatar May 01 '14 19:05 boulaycote