← Graph

Use temporary storage to avoid orphan files

takeaway 2 connections

Shrine requires a temporary storage (the 'cache' directory used by its upload endpoints) separate from permanent storage, and recommends configuring the cloud service (e.g. S3 lifecycle rules) to auto-expire the temporary directory. This prevents files uploaded without a successful form submission from lingering as orphans.

type
recommendation
takeaway Use temporary storage to avoid orphan files
about
Orphan Files concept
Avoiding orphan files via temp storage.
takeaway Use temporary storage to avoid orphan files
from_talk
Recommendation from the Q&A on async upload transactionality.

Provenance