239080
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