S3
S3 copied to clipboard
no method "S3.delete(path, callback)"
Bug in client:
delete: (path,callback) -> Meteor.call "_s3_delete", path, callback
Use:
Meteor.call("_s3_delete", relative_url, function(e, r) { if (e) { console.error(e); } });
The method should look more like
Meteor.methods({
delete : function(relativeUrl) {
S3.delete(relativeUrl)
}
})
And on the client
Meteor.call('delete',this.relative.url)