sst.dev icon indicating copy to clipboard operation
sst.dev copied to clipboard

S3 bucket should have etag header exposed

Open liebrand opened this issue 4 years ago • 1 comments

Just found that any half decent sized file for upload will fail, because amplify storage falls over if the s3 bucket does not have the etag exposed.

Simple fix to the CORS setup... in yml:

Resources:
  S3Bucket:
    Type: AWS::S3::Bucket
    Properties:
      # Set the CORS policy
      CorsConfiguration:
        CorsRules:
          -
            AllowedOrigins:
              - '*'
            AllowedHeaders:
              - '*'
            AllowedMethods:
              - GET
              - PUT
              - POST
              - DELETE
              - HEAD
            MaxAge: 3000
            ExposedHeaders:
              - ETag

liebrand avatar Jun 29 '20 19:06 liebrand

Oh that's interesting. What file size did you try? I'd like to test it to verify the fix.

jayair avatar Jul 03 '20 00:07 jayair