1 year ago
#291845
josiebhai
Uploading large files to s3 using signed urls then save url to database, and then delete unused objects in s3
I'm looking for steps to solve the issue of deleting mistakenly uploaded files into S3 Bucket.
Steps to Reproduce Issue :
- Front End / Client get signed url from the Server.
- Front End / Client uploads File1 onto the S3 Bucket.
- Front End / Client get another signed url from the Server.
- Front End / Client uploads File2 onto the S3 Bucket.
- Front End / Client calls the api to save the url of File2 onto the database.
Here, File1 is left orphan on the S3 bucket with no links in my database. In our case we are dealing with large video files, so bit concerned on the usage of the bucket.
How do I delete these orphaned files from S3 bucket?
Thanks in advance.
amazon-web-services
amazon-s3
cloud-storage
0 Answers
Your Answer