basalt / files/src / FileRecord
Interface: FileRecord
Defined in: files/src/store.ts:17
Metadata for one uploaded file. The bytes live in storage; this is the record.
Properties
checksum
> checksum: string
Defined in: files/src/store.ts:28
SHA-256 of the content.
contentType
> contentType: string
Defined in: files/src/store.ts:22
createdAt
> createdAt: number
Defined in: files/src/store.ts:41
id
> id: string
Defined in: files/src/store.ts:18
metadata?
> optional metadata?: FileMetadata
Defined in: files/src/store.ts:30
name
> name: string
Defined in: files/src/store.ts:21
Original filename.
path
> path: string
Defined in: files/src/store.ts:26
Path within the storage disk.
scannedAt?
> optional scannedAt?: number
Defined in: files/src/store.ts:40
When a scanning step (antivirus, moderation, …) last reported on this file, set by markScanned. Absent means never scanned.
A timestamp rather than the scanned: boolean this replaced: the date derives the boolean, and the boolean does not derive the date. "Scanned" with no idea when stops being an answer the moment the scanner's rules change — which is the one thing antivirus rules reliably do.
size
> size: number
Defined in: files/src/store.ts:24
Size in bytes.
tenantId
> tenantId: string
Defined in: files/src/store.ts:19
uploadedBy?
> optional uploadedBy?: string
Defined in: files/src/store.ts:29