【发布时间】:2016-11-14 22:07:39
【问题描述】:
我正在尝试在使用meteor-uploads 上传文件后更新用户“photoPath”字段。 我收到此错误:
错误:Meteor 代码必须始终在 Fiber 中运行。尝试包装 传递给非 Meteor 库的回调 Meteor.bindEnvironment.
服务器/init.js
validateFile: function(file, req) {
Meteor.users.update( { _id: Meteor.userId() }, {$set: {"profile.photoPath": req.path}});
return null;
}
【问题讨论】:
标签: meteor meteor-blaze meteor-accounts