basalt / files/src / PublicFileRecord
Interface: PublicFileRecord
Defined in: files/src/plugin.ts:125
What fileRoutes answers with by default: the record minus what only the server needs. Left out: path (the storage key — the layout of your bucket), checksum, tenantId (the store key, @single without tenancy), uploadedBy (a user id, of someone else on a shared drive) and the scanner's detail (engine output: signature names, versions, temp paths). The scan verdict stays, as scan.clean, so a client can show why a file is not downloadable yet.
Properties
contentType
> contentType: string
Defined in: files/src/plugin.ts:128
createdAt
> createdAt: number
Defined in: files/src/plugin.ts:130
id
> id: string
Defined in: files/src/plugin.ts:126
metadata?
> optional metadata?: FileMetadata
Defined in: files/src/plugin.ts:136
The app's own metadata (declaredType included), without the internal scan entry.
name
> name: string
Defined in: files/src/plugin.ts:127
scan?
> optional scan?: object
Defined in: files/src/plugin.ts:134
The last scan's verdict — never its detail.
clean
> clean: boolean
scannedAt?
> optional scannedAt?: number
Defined in: files/src/plugin.ts:132
When the last scan reported, if one has.
size
> size: number
Defined in: files/src/plugin.ts:129