阿里oss multipartUpload 错误

问题描述

分片上传 最后一个请求报错 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 错误

// 响应信息
"1.0" encoding="UTF-8"?>

  InvalidPart
  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.
  5C455831BB4097C0D8F96794
  wolaile.oss-cn-hangzhou.aliyuncs.com
  undefined
  1
  4B1BF2F5DE064694870DD46E657F0CA6


复制代码

产生原因

经检查发现 ETag 为undefined

解决方法

在阿里云oss控制台 基础设置 > 跨域规则设置 > 编辑规则 “暴露 Headers” 中增加 ETag 即可解决问题

转载于:https://juejin.im/post/5c4412186fb9a049d2365bbc

你可能感兴趣的:(阿里oss multipartUpload 错误)