Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

Cloudinary Upload photo within meteor method #42

Open sangyoo91 opened 9 years ago

sangyoo91 commented 9 years ago

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 commented 9 years ago

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

 ReferenceError: future is not defined
Lepozepo commented 8 years ago

Make sure you are calling it on the client

a-mummey commented 8 years ago

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