meteor-file
meteor-file copied to clipboard
Add a "cancel upload" feature
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?