First your renderImage helper returns a cursor so in your “renderImage” template you have to iterate with #each, or for your test just use findOne and #with.
Then access to the image src with image.link
Second if you want the full URL for use in src you can use link to create a downloadable link
I am using the same to upload the files.
I have “choices” collection which have each choice with image.
I have published the images file
pub.js (server side)
Meteor.publish(‘files.images.all’, function () {
return Images.find().cursor;
});
What I want is I have to display all the choices with their image & names.
I have the choices collections with data schema like
{name:“some choice”, featured_image:{ _id:“KcLkabv2wPiSwLpm6” }}
I am trying to get the link of the image by passing the ID to image collection.
which Exception ? please provide detailled exception information
Please use quotes to put your code in good shape when posting… otherwise it’s difficult to read …