File

Represents a stored file, its metadata, and associated properties.

Fields

PropertyTypeDescription
createdAtDateWhen the file was created.
updatedAtDateWhen the file was last updated.
deletesAtDate?Scheduled deletion time.
favoritebooleanIs this file a favorite.
idstringUnique file identifier in cuid.
originalNamestring?Name of file when uploaded.
namestringStorage/unique name.
sizenumberFile size in bytes.
typestringMIME type.
viewsnumberTimes viewed/downloaded.
maxViewsnumber?~Max allowed views.
passwordboolean?~If the file is password protected.
folderIdstring?Parent folder ID.
thumbnail{ path: string }?Thumbnail info.
tagsTag[]~Associated tags.
urlstring~File URL (added by cleaner on uploads/get).


Last updated: 5/27/2025
Edit this page on GitHub