JavaScript-SDK之如何实现浏览器应用?
Re提交上传的时候报错,求教!!!
我的项目中使用的是angular4,在提交上传的时候报错。
提交上传代码块:
uploadFile() {
const files
=
this.filesList;
const key
=
'object';
const client
=
new
OSS.
Wrapper({ region:
this.region,
accessKeyId:
this.accessKeyId, accessKeySecret:
this.accesskey,
bucket:
this.bucket });
client.
multipartUpload(key, files, { progress:
this.progress
}).
then(((
res
:
any)
=> {
alert(
`
${res
}
`);
console.
log(
'upload success');
this.uploadStatus.
emit(res);
})); };
报错信息见附件:求解!
赞0
踩0