@zooey1184/upload_to_oss
v1.0.1
Published
upload oss
Downloads
2
Readme
将文件上传到oss脚本
const uploadToOss = require('@zooey1184/upload_to_oss')
const path = require('path')
const config = {
region: 'your_region',
accessKeyId: 'your_accessKeyId',
accessKeySecret: 'your_accessKeySecret',
bucket: 'your_bucket'
}
const osspath = 'demo/1'
const local = path.resolve(__dirname, './dist')
uploadToOss({
config,
local,
osspath
})