【发布时间】:2015-09-03 20:23:54
【问题描述】:
我正在使用以下流星包上传图片
https://github.com/CollectionFS/Meteor-CollectionFS
我正在使用的代码
Uploads =new FS.Collection('uploads',{
stores: [new FS.Store.FileSystem('uploads',{path:'~/projectUploads'})]
});
if (Meteor.isClient) {
Template.makedobox3.events({
'change .fileinput':function(event,template){
FS.Utility.eachFile(event,function(file){
var fileObj=new FS.File(file);
Uploads.insert(fileObj,function(err){
console.log(err);
});
})
}
});
}
当我尝试在控制台中上传文件时出现错误
M…r.m…e.errorClass {error: 404, reason: "Method not found", details: undefined, message: "Method not found [404]"
我在窗口环境。安装了自动发布和不安全的软件包。 我不确定我错过了什么?
【问题讨论】:
标签: meteor collectionfs