Appearance
Handling Dangling Images
Dangling images are a common problem when implementing image uploads - users upload images to forms but abandon them before submission, leaving orphaned files consuming storage indefinitely.
The problem scenario:
- User starts form submission
- On the form page, user uploads image to S3/object storage e.g. via presigned URL
- User abandons form before submitting it
- ISSUE: Image remains in storage indefinitely
Solving this issue manually requires either creating lifecycle rules and/or separate buckets, managing a CDN for those locations, and copying objects from location to another manually.
With Icefiery temporary uploads:
- User starts form submission
- On the form page, user uploads image via
/upload-temporary-image
endpoint - User abandons form before submitting it
- Temporary image is deleted after 24 hours
No manual cleanup required.