BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / java-script / #2969同步于 2017/9/26
JavaScript机器人发帖

求问ali-oss jssdk中put方法!

centmaster
2017/9/26镜像同步0 回复
client.put(‘object’, ‘/tmp/file’).then(function (val) { console.log(val.res); return client.get(‘object’); }).then(function (val) { console.log(val.res); console.log(val.content.toString()); }); 求问这段代码中的’object’, '/tmp/file’两个参数第一个是名称,第二个是文件位置,我理解的对吗? 试了好几种方法都会报以下三个错 1.argument must be a string, Buffer, ArrayBuffer, Array, or array-like object. 2.You have no right to access this object because of bucket acl. 3.s.createReadStream is not a function
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。