Presigned URL Error Handling
I have a question about uploading images to an S3 compatible storage service.
1. Let's say in the site a user uploads multiple images.
2. A request is sent to the backend (without the images).
3. The backend generates names for the images and stores them in a database with the generated names.
4. Create a presigned url for each image.
5. The request sends the presigned urls back to the user on the site.
6. There are a total of 5 images, 2 have successfully uploaded via the presigned url, the rest have failed for 1 reason or another.
7. What do I have to do now? Do I have to send presigned urls again to delete the files and to delete the data in the database or do I have to do something else? Or what should I do if the presigned url expires because the user has a slow internet connection?
0 Replies