gpt4 book ai didi

amazon-s3 - 精细 uploader S3 : Refused to get unsafe header "ETag"

转载 作者:行者123 更新时间:2023-12-04 10:52:20 31 4
gpt4 key购买 nike

我正在尝试使用 jQuery Fineuploader (v 3.9.1) 上传到 S3 并启用调试。上传的所有部分都成功了,但随后出现错误“要求亚马逊合并这些部分的问题!”

我在控制台上启用了调试并收到错误 [拒绝获取不安全的 header “ETag”] 以及来自亚马逊的错误:

Received response status 400 with body: InvalidPartOne or more of the specified parts could not be found. The part may not have been uploaded, or the specified entity tag may not match the part's entity tag.eTvPFvkXEm07T17tvZvFacR4vn95EUTqXyoPvlLh1a6AADlc94v7H9.a2jcmow1pjfN1xcdw_xMx60APpXn6rGwhHYtzE0NT90Bs0IVqrkaFHW75yRl5E4nfO3Od6rWZnull0CD2DC02D0870E61R4Kpfe66IDvL44Jx9Aoicxgh9Frqd4qr8ILWHbu5YhlqGomxIBOZvfkgy4R4VsYS1

最佳答案

您的 Amazon S3 CORS XML 配置文件似乎不正确。确保添加 <ExposeHeader>ETag</ExposeHeader><CORSRule>部分详述如下,

<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<ExposeHeader>ETag</ExposeHeader>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>

更多信息在 documentation on Amazon S3 serversofficial blog post on the same thing .

关于amazon-s3 - 精细 uploader S3 : Refused to get unsafe header "ETag",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19304744/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com