云开发网络图片cloud.uploadFile不能上传到存储空间
http.get({ host: "img.php.cn" , path: "/upload/avatar/000/001/506/5922afcbb3cf4752.jpg" }, (res)=> { //var stream = fs.createWriteStream("demo.jpg"); //res.pipe(stream); cloud.uploadFile({ cloudPath: 'demo.jpg' , fileContent: res, }) } ); |
云开发中,服务器端api进行cloud.uploadFile 云开发管理后台测试没反应, 写得有错吗?
本地scf 调试 图片可以存本地 但报错:
Error: errCode: -1 unknown error | errMsg: uploadFile:fail Error: missing secretId or secretKey of tencent cloud; at uploadFile api;