【发布时间】:2015-11-20 13:12:43
【问题描述】:
我在客户端试过
Images.insert({art:"some description"},{ _id:this._id});
收到此错误
cfs_data-man.js:241 未捕获的错误:DataMan 构造函数接收到它不支持的数据(…)
Images.update({art:"some description"},{ _id:"XztX47mZ2EYcjHdMp"});
得到了这个错误:
collection.js:395 Uncaught errorClass {error: 403, reason: "Not allowed. Untrusted code may only update documents by ID.", details: undefined, message: "Not allowed. Untrusted code只能按 ID 更新文档。[403]", errorType: "Meteor.Error"}
【问题讨论】:
-
切换那些对象,第一是搜索,第二是你更新的内容
标签: javascript image meteor