代码如下:
var file = new AV.File("test.png", req.files.file);
file.save()
.then(function(response) { console.log(response._url); }, function(error) { console.log(error); });
错误如下:
TypeError: Cannot read property '_thenRunCallbacks' of undefined
代码如下:
var file = new AV.File("test.png", req.files.file);
file.save()
.then(function(response) { console.log(response._url); }, function(error) { console.log(error); });
错误如下:
TypeError: Cannot read property '_thenRunCallbacks' of undefined
我用的是koa@1.x,用busboy来处理上传时也遇到了这个问题。
不过可以参考下https://leancloud.cn/docs/leanengine_gui...,算是官网的另一个教程,用的是multiparty
亲测可用- -
5 回答4.9k 阅读✓ 已解决
4 回答2.5k 阅读✓ 已解决
2 回答1.8k 阅读✓ 已解决
5 回答2k 阅读
3 回答2k 阅读
1 回答3.3k 阅读
1 回答2.7k 阅读
也报同样的错误。