docs icon indicating copy to clipboard operation
docs copied to clipboard

Gen 2 storage doc sample code syntax error

Open hangoocn opened this issue 1 year ago • 2 comments

Describe the content issue: Code betlow is missing the semicolon after line allow.guest.to(['read'])

[
      allow.guest.to(['read'])
      allow.entity('identity').to(['read', 'write', 'delete'])
]

URL page where content issue is: https://docs.amplify.aws/react/build-a-backend/storage/set-up-storage/#define-file-path-access

hangoocn avatar May 05 '24 23:05 hangoocn

Thanks so much for catching this! Created a PR to fix: https://github.com/aws-amplify/docs/pull/7489

aspittel avatar May 05 '24 23:05 aspittel

Another syntax error here: https://docs.amplify.aws/react/build-a-backend/storage/upload-files/#monitor-upload-progress

Missing await in line const result = uploadData xx

hangoocn avatar May 06 '24 00:05 hangoocn