文档地址:https://help.aliyun.com/document_detail/32069.htm
使用方法:
let OSS = require('ali-oss')
let client = new OSS({
region: '',
accessKeyId: '',
accessKeySecret:'' ,
stsToken:'' ,
endpoint: '',
bucket: ''
})
let _this = this
client.put(storeAs, file).then(function (result) {//普通上传,
//大文件分片上传 client.multipartUpload
_this.handleSuccess(result, file)
}).catch(function (err) {
console.log(err)
})