Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 bucket should have etag header exposed #485

Open
liebrand opened this issue Jun 29, 2020 · 1 comment
Open

S3 bucket should have etag header exposed #485

liebrand opened this issue Jun 29, 2020 · 1 comment

Comments

@liebrand
Copy link

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
@jayair
Copy link
Contributor

jayair commented Jul 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants