DEV Community

Discussion on: GraphQL Tutorial - How to Manage Image & File Uploads & Downloads with AWS AppSync & AWS Amplify

Collapse
 
dean177 profile image
Dean Merchant

It looks like its possible for the file upload to S3 to succeed, but the graphql Mutation to fail. How do you deal with the zombie files?

Collapse
 
n1ru4l profile image
Laurin Quast

You should check out Object Expiration for S3. As part of the mutation, you could then remove the Object expiration, or copy the file to another "persistent" bucket.

Collapse
 
dean177 profile image
Dean Merchant

Thanks Laurin