You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've started using MeteorFile in my project and I was curious how to delete a file document from the collection after an upload is completed. After investigation I've noticed that there is (probably) no way to get to the collection from the file perspective or my custom template perspective. I had to add an event to the _meteorFileUploader template what I think is not a good solution. Could you provide some solution for this problem? Or could I write some code and create PR?
Template._meteorFileUploader.events({
'click .remove': function (e, tmpl) {
e.preventDefault();
var uploader = tmpl.data,
files = uploader.files;
files.remove(this._id);
}
});
The text was updated successfully, but these errors were encountered:
Hi,
I've started using MeteorFile in my project and I was curious how to delete a file document from the collection after an upload is completed. After investigation I've noticed that there is (probably) no way to get to the collection from the file perspective or my custom template perspective. I had to add an event to the
_meteorFileUploader
template what I think is not a good solution. Could you provide some solution for this problem? Or could I write some code and create PR?The text was updated successfully, but these errors were encountered: