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

Gen 2 storage doc sample code syntax error #7488

Open
hangoocn opened this issue May 5, 2024 · 2 comments
Open

Gen 2 storage doc sample code syntax error #7488

hangoocn opened this issue May 5, 2024 · 2 comments

Comments

@hangoocn
Copy link

hangoocn commented May 5, 2024

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

@aspittel
Copy link
Contributor

aspittel commented May 5, 2024

Thanks so much for catching this! Created a PR to fix: #7489

@hangoocn
Copy link
Author

hangoocn commented May 6, 2024

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

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

No branches or pull requests

3 participants