Skip to content

Add a "cancel upload" feature #15

Open
@boulaycote

Description

@boulaycote

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions