【发布时间】:2017-06-17 03:55:45
【问题描述】:
我已经在 stackoverflow 上搜索过这个问题,但它们看起来都相似(实际上不是同一个问题),而有些问题却完全相反。
这是我的代码:
Cloudinary.upload(file, {
folder: "images",
type: "private"
}, (err, res) => {
if(err) {
console.log("Upload Error: ", err);
alert("Sorry, there was an error uploading the image");
return;
}
if (res) {
console.log("Upload Result: ", res);
}
});
上面的代码适用于 safari 和 chrome,但在 Firefox 上失败。它快把我逼疯了!
Firefox 抛出错误提示:
File.lastModifiedDate is deprecated. Use File.lastModified instead.
SyntaxError: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data[Learn More] lepozepo_cloudinary.js:224:20
Cloudinary._upload_file/</<
不确定这里的问题是什么,感谢任何帮助。谢谢。
【问题讨论】:
标签: javascript node.js firefox meteor cloudinary