我正在使用cfs:ui以及所有其他cfs包來上傳和顯示圖像。問題是,我無法獲得圖像顯示助手的圖像ID。這是代碼。顯示cfs:ui圖像流星
Template.upload.events({
'change #exampleInput': FS.EventHandlers.insertFiles(Images, {
metadata: function (fileObj) {
return {
owner: Meteor.userId(),
pic: fileObj._id
};
},
after: function (error, fileObj) {
console.log("Inserted", fileObj._id);
}
})
});
<template name="profile">
{{#with FS.GetFile "images" metadata.pic}}
<img src="{{this.url}}">
{{/with}}
</template>
如何顯示呢?