流星文件下载与流星文件包(ostrio:files)



我需要一些有关流星文件包的帮助我在这里下载最简单的演示https://github.com/VeliovGroup/Meteor-Files/tree/master/demo-simplest-download-button还有一些保险杠。首先是代码:

this.Books = new Meteor.Files({
  debug: true,
  collectionName: 'Books'
});
// To have sample file in DB we will upload it on server startup:
if (Meteor.isServer) {
  Books.denyClient();
  Books.collection.attachSchema(Books.schema);
  Meteor.startup(function () {
    if (true) {
      Books.load('http://localhost:3000/file.pdf', {
        fileName: 'file.pdf',
        meta: {}
      });
    }
  });
  Meteor.publish('Books', function () {
    return Books.find().cursor;
  });
} else {
  Meteor.subscribe('Books');
}
  1. 问题-当我从git中编译代码时,如果

(!Images.find((.count(((

哪颗流星只是没有意识到这是一种功能,就在那里破碎了。我修复了这个问题,只是用TRUE替换它,正如你在代码中看到的那样

  1. 问题是,现在一切都在运行,我的文件被成功导入,但我可以在服务器日志中看到,他找不到文件,导致:

    [FilesCollection][load]已接收:http://localhost:3000/file.pdfI20160806-14:00:27.190(2(?[FilesCollection][load][insert]file.pdf->书籍I20160806-14:00:29.360(2(?[FilesCollection][find(未定义(]I20160806-14:00:33.045(2(?[FilesCollection][find(未定义(]

该包已过期,需要我方进行流星更新。如果有人需要

最新更新