JS OSS 上传大文件出现 InvalidPart 400 错误

OSS上传大文件出现InvalidPart错误

Status Code:400 Bad Request

<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>InvalidPart</Code>
  <Message>One or more of the specified parts could not be found or the specified entity tag might not have matched the part's entity tag.</Message>
  <RequestId>5A5F1A9AF1C41E8EF66E3892</RequestId>
  <HostId>yjhbucket.oss-cn-shanghai.aliyuncs.com</HostId>
  <ETag>undefined</ETag>
  <PartNumber>1</PartNumber>
  <UploadId>F384DB8AAA9048B4BE3AA9E6133B2F3D</UploadId>
</Error>

要在跨域设置里面的暴露 Headers增加一条ETag

https://help.aliyun.com/document_detail/31926.html

gaodevops