File
Represents a stored file, its metadata, and associated properties.
Fields
Property | Type | Description |
---|---|---|
createdAt | Date | When the file was created. |
updatedAt | Date | When the file was last updated. |
deletesAt | Date? | Scheduled deletion time. |
favorite | boolean | Is this file a favorite. |
id | string | Unique file identifier in cuid. |
originalName | string? | Name of file when uploaded. |
name | string | Storage/unique name. |
size | number | File size in bytes. |
type | string | MIME type. |
views | number | Times viewed/downloaded. |
maxViews | number?~ | Max allowed views. |
password | boolean?~ | If the file is password protected. |
folderId | string? | Parent folder ID. |
thumbnail | { path: string }? | Thumbnail info. |
tags | Tag[]~ | Associated tags. |
url | string~ | File URL (added by cleaner on uploads/get). |
Last updated: 5/27/2025
Edit this page on GitHub