diff --git a/example/README.md b/example/README.md index 3cda1f1e4..3827f8954 100644 --- a/example/README.md +++ b/example/README.md @@ -30,7 +30,7 @@ access. ### App setup -Fill in your bucket name and region in `app.js`: (Note: ensure port 9000 is not used) +Fill in your bucket name and region in `main.js`: (Note: ensure port 9000 is not used) ```js var bucket = ''; diff --git a/lib/common/multipart.js b/lib/common/multipart.js index 51742faf2..647ee5e3b 100644 --- a/lib/common/multipart.js +++ b/lib/common/multipart.js @@ -239,6 +239,10 @@ proto._uploadPart = async function _uploadPart(name, uploadId, partNo, data, opt const result = await this.request(params); + if (!result.res.headers.etag) { + throw new Error('Please set the etag of expose-headers in OSS \n https://help.aliyun.com/document_detail/32069.html'); + } + data.stream = null; params.stream = null; return {