S3 icon indicating copy to clipboard operation
S3 copied to clipboard

no method "S3.delete(path, callback)"

Open Flavien-Pensato opened this issue 9 years ago • 1 comments

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); } });

Flavien-Pensato avatar May 22 '15 14:05 Flavien-Pensato

The method should look more like

Meteor.methods({
 delete : function(relativeUrl) {
  S3.delete(relativeUrl)
 }
})

And on the client

Meteor.call('delete',this.relative.url)

Ethaan avatar Jun 02 '15 17:06 Ethaan