Fine Uploader S3: Failed to get insecure ETag header

I am trying to load on S3 using jQuery fineuploader (v 3.9.1) and enable debugging. All parts of the download were successful, but then I get the error "Problem asking Amazon to merge the details!"

I turned on debug on the console and got errors [Refused to get insecure "ETag" header], and also this from Amazon:

Received response status 400 with body: <Code> InvalidPart One or more of the specified details were not found. Possibly, this piece has not been downloaded, or said tag object can not match the object side tag.eTvPFvkXEm07T17tvZvFacR4vn95EUTqXyoPvlLh1a6AADlc94v7H9.a2jcmow1pjfN1xcdw_xMx60APpXn6rGwhHYtzE0NT90Bs0IVqrkaFHW75yRl5E4nfO3Od6rWZnull0CD2DC02D0870E61R4Kpfe66IDvL44Jx9Aoicxgh9Frqd4qr8ILWHbu5YhlqGomxIBOZvfkgy4R4VsYS1

+6
source share
1 answer

Your Amazon S3 CORS XML configuration file seems to be incorrect. Make sure you add the <ExposeHeader>ETag</ExposeHeader> to the <CORSRule> section as described below.

 <?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> 

For more information, see the documentation on Amazon S3 servers and the official blog post on the same site .

+9
source

Source: https://habr.com/ru/post/955710/


All Articles