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

AWS Amplify Storage #13065

Closed
3 tasks done
saharJ95 opened this issue Feb 28, 2024 · 5 comments
Closed
3 tasks done

AWS Amplify Storage #13065

saharJ95 opened this issue Feb 28, 2024 · 5 comments
Assignees
Labels
question General question Storage Related to Storage components/category

Comments

@saharJ95
Copy link

Before opening, please confirm:

JavaScript Framework

React, Next.js

Amplify APIs

Storage

Amplify Version

v6

Amplify Categories

storage

Backend

None

Environment information

Production and Development

Describe the bug

Unable to access bucket which is already described in Configuration. I am getting missing bucket name issue

Can You please Identify if there is anything wrong with config things?

Expected behavior

Upload images in multiple bucket

Reproduction steps

Configure Storage (s3 bucket) in Amplify
Upload Data in respective buckets

Code Snippet

image

This is Amplify.getConfig() result
image

image

Log output

image

aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

@saharJ95 saharJ95 added the pending-triage Issue is pending triage label Feb 28, 2024
@cwomack cwomack added the Storage Related to Storage components/category label Feb 28, 2024
@cwomack cwomack self-assigned this Feb 28, 2024
@saharJ95
Copy link
Author

saharJ95 commented Mar 4, 2024

Hi @cwomack ,
Any update on this ? I am waiting for your response

@nadetastic
Copy link
Member

Hi @saharJ95 thank you for opening this issue. I see that you are console logging the Amplify.getConfig(), can you clarify if you are doing so right before the call to uploadData()?

@saharJ95
Copy link
Author

saharJ95 commented Mar 12, 2024

Hi @nadetastic , Thank you for your response.

I fixed the issue by adding an S3 object in the amplify configuration.
So that was configuration-missing issue

image

@saharJ95
Copy link
Author

One more thing i want to know how we can upload files in multiple buckets ? @nadetastic

@nadetastic
Copy link
Member

@saharJ95 glad to hear that you were unblocked. As for your follow up question, Amplify doesn't currently support multiple buckets, and we are tracking this as a feature request on this github issue - aws-amplify/amplify-cli#5836 - feel free to subscribe and follow to the issue for whenever we have future updates. There may also be some workarounds in the comments that could work for you.

@nadetastic nadetastic added question General question pending-response and removed pending-triage Issue is pending triage labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question General question Storage Related to Storage components/category
Projects
None yet
Development

No branches or pull requests

3 participants