代码如下:
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
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
也报同样的错误。
我用的是koa@1.x,用busboy来处理上传时也遇到了这个问题。
不过可以参考下https://leancloud.cn/docs/leanengine_gui...,算是官网的另一个教程,用的是
multiparty
亲测可用- -