Reputation: 691
I'm using collectionFs
to upload and display images.
Everything works perfectly except that when I try to display the image in the template nothing happens.
If I write {{this.url}}
the url displays perfectly
/cfs/files/images/GkPAjn98N6izJYc6x/blogging.jpg
However if I write <img src="{{this.url}}">
nothing happens
Any idea why this is?
Upvotes: 1
Views: 357
Reputation: 11376
If you inspect the element what you get?
you get <im src="/cfs/files/images/GkPAjn98N6izJYc6x/blogging.jpg"/>
Also be sure you have the allow download to true
Images.allow({
download:function(){return true;}
})
Check out this DEMO
NOTE: do a meteor list and check that you have the latest version of cfs:stander:packages
and cfs:gridfs
or filesystem
Upvotes: 1