Amazon s3 upload. S3 response bad digest

I can’t find out how to fix that error. What I know is that my file is saved to Active_storage with a digest. Amazon s3 that the digest are not equal = bad digest.

I hope someone can help me fix it. Regards, Poul Erik Rasmussen

When you upload using the ActiveStorage JS the MD5 gets computed using the Spark-MD5 library. What you need to check is:

  • Does the Content-MD5 header get sent with the “create blob” request
  • Does the Content-MD5 get sent with your PUT request to S3
  • Is the Content-MD5 in the list of your CORS allowed headers in your bucket CORS configuration