【发布时间】:2016-08-04 11:46:05
【问题描述】:
没有演示更新clodinary Image的代码。 我在下面编写的代码确实更新了图像,但是我不能立即使用云图像的填充或限制方法。
cloudinary.uploader.upload(req.files.icon.path, function(img, err) {
console.log(img)
if(err){
res.send(err);
}else{
req.user.update({$set: {icon: img}}, function (err, count) {
res.send(img.fill(300,300));// this line says fill not defined.
//res.send(_img.fill(300,300));// this also fails
});
}
});
【问题讨论】:
标签: cloudinary keystonejs