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

Integrate Storage with DataStore #537

Closed
amuresia opened this issue Jun 10, 2020 · 7 comments
Closed

Integrate Storage with DataStore #537

amuresia opened this issue Jun 10, 2020 · 7 comments
Labels
datastore Issues related to the DataStore category feature-request Request a new feature storage Issues related to the Storage category

Comments

@amuresia
Copy link

I have a use case where I create users via DataStore and I want to store their avatars in S3.

I would like a secure solution for retrieving a .protected avatar so that other users of the applications can see it.

At the moment I am using something like this:

type User
@model
{
  id: ID!
  picture: Picture!
}

type Picture @model {
  identityId: String!
  fileName: String!
}

As you can see, I store identityId in the object so that Storage.download can retrieve it from S3.

@drochetti drochetti added datastore Issues related to the DataStore category enhancement labels Jun 10, 2020
@drochetti drochetti added feature-request Request a new feature storage Issues related to the Storage category and removed enhancement labels Jun 24, 2020
@palpatim
Copy link
Member

We will provide a code sample that shows how we can accomplish this in the absence of baked-in support.

@drochetti drochetti added the follow up Requires follow up from maintainers label Oct 10, 2020
@lawmicha lawmicha added the p4 label Jun 8, 2022
@ksp17788
Copy link

Any update on this or a work around that you suggest ?

@lawmicha
Copy link
Member

We are currently working on some documentation here: aws-amplify/docs#5649 Please see "working with files" section

@lawmicha
Copy link
Member

Related issue, another customer also looking for this support: #799

@lawmicha
Copy link
Member

Related #1517

@atierian atierian removed the p4 label Oct 16, 2023
@atierian atierian removed the follow up Requires follow up from maintainers label Jan 8, 2024
@lawmicha
Copy link
Member

please see https://docs.amplify.aws/swift/build-a-backend/graphqlapi/working-with-files/ for guidance on working with files

Copy link
Contributor

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datastore Issues related to the DataStore category feature-request Request a new feature storage Issues related to the Storage category
Projects
None yet
Development

No branches or pull requests

7 participants