yarn add ali-oss
const client = new OSS({
accessKeyId: 'xxx',
accessKeySecret: 'yyy',
bucket: 'your-bucket',
region: 'oss-cn-hangzhou',
})
put(路径,Buffer)
const buf = await promisify(readFile)('./hello.txt')
await client.put(`/dir/test.txt`, buf)