cloudinary icon indicating copy to clipboard operation
cloudinary copied to clipboard

Cloudinary Upload photo within meteor method

Open sangyoo91 opened this issue 10 years ago • 3 comments

How do I call cloudinary upload properly within a meteor method?

Cloudinary._upload_file

I tried this but I get the following error (it works fine if I call it from client but not from within a method)

Exception while invoking method 'saveImage2' TypeError: Object #<Object> has no method '_upload_file'

sangyoo91 avatar Aug 21 '15 12:08 sangyoo91

I've also tried Cloudinary.uploader.upload but I get

 ReferenceError: future is not defined

sangyoo91 avatar Aug 21 '15 12:08 sangyoo91

Make sure you are calling it on the client

Lepozepo avatar Sep 12 '15 17:09 Lepozepo

I was able to do something like this: Cloudinary.uploader.upload(photo, Meteor.bindEnvironment(function (res, err) {

a-mummey avatar Sep 14 '15 17:09 a-mummey