Meteor正在正确保存图像,但我可以';我无法找回它们

Meteor正在正确保存图像,但我可以';我无法找回它们,meteor,Meteor,与以下收集 var imageStore = new FS.Store.S3("images", { bucket: "my-bucket" }); Images = new FS.Collection("images", { stores: [imageStore] }); Images.allow({ insert: function () { return true; }, update: function () { return tru

与以下收集

var imageStore = new FS.Store.S3("images", {   bucket: "my-bucket" });

Images = new FS.Collection("images", {   stores: [imageStore] });

Images.allow({   insert: function () {
      return true;
    },   update: function () {
      return true;
    },   remove: function () {
      return true;
    },   download: function () {
      return true;
    } });
我可以成功地存储和上传图像到S3-图像上传很好,并保存在Mongo DB fine中

但当我这样做的时候

Images.find().count()
它将返回0

Images.find().fetch()
返回一个空数组

如果我运行meteor mongo并使用查询
db.cfs.images.filerecord.find().count()
它将返回6(正确的数字)


想知道我在这里做错了什么吗?

如果您被删除,请不要忘记发布您的
图像集

服务器

Meteor.publish("images", function() {
    return Images.find(); //Narrow this down to the images that should be viewable
});
然后在客户机上:

Meteor.subscribe("images");