← Graph

Orphan files from async uploads

question 2 connections

Audience question: async uploads aren't transactional — a user can submit a huge file but never finish filling in metadata, leaving the image attached to no record. How to deal with it / expire it? Answer: Shrine uses separate temporary and permanent storages; the 'cache' directory on S3 can be configured to auto-expire, so orphan files disappear while attached files remain.

answer_summary
Use temporary ('cache') storage with auto-expiration and separate permanent storage.
question Orphan files from async uploads
about
Orphan Files concept
Question is about orphan-file risk with async uploads.
question Orphan files from async uploads
asked_at
Audience question during Q&A.

Provenance