onUpload(e) {
const param = new Form
const files = e.file
param.append('file', files, files.name);
var client = new OSS({
region: this.$store.state.user.ossKey.region,
accessKeyId: this.$store.state.user.ossKey.accessId,
accessKeySecret: this.$store.state.user.ossKey.accessKey,
bucket: this.$store.state.user.ossKey.bucket,
secure: false,
});
client.multipartUpload("udkp/new-version/" + this.time() + "/" + getFileTypeValue + "/" + new Date().getTime() + this.getFileExtension(files.name), files, {
headers: {
'Content-Disposition': 'inline',
'Content-Type': files.type
},
progress: (originalValue) => {
this.percentageValue = Number(Math.floor(originalValue * 100));
}
}).then(result => {
var url = result.res.requestUrls[0].split("?")[0];
})
}