Media / foldkit-media/server

uploadsKeyValueStore

function · packages/media/src/server/upload.ts:158

function uploadsKeyValueStore(options?: {
  readonly prefix?: string
}): Layer.Layer<Uploads, never, KeyValueStore.KeyValueStore>

Uploads kept in the application's KeyValueStore, each under its content hash after prefix: the same keys originalsKeyValueStore reads, with the same prefix. A store that fails is a defect: an upload it dropped is lost.