Skip to main content
A File record represents a file uploaded to Replyke’s storage system. Files can be attached to users (avatars, banners), entities, comments, chat messages, or spaces. Image files include an additional image extension with processed variants at multiple sizes.

File

PropertyTypeDescription
idstringUnique file identifier (UUID).
projectIdstringThe project this file belongs to.
userIdstring | nullThe user this file is associated with (for avatars/banners).
entityIdstring | nullThe entity this file is attached to.
commentIdstring | nullThe comment this file is attached to.
chatMessageIdstring | nullThe chat message this file is attached to.
spaceIdstring | nullThe space this file is associated with.
type"image" | "video" | "document" | "other"The file category.
originalPathstringProxied URL to the original uploaded file.
originalSizenumberSize of the original file in bytes.
originalMimeTypestringMIME type of the original file (e.g. "image/jpeg").
positionnumberDisplay order when multiple files are attached to the same record.
metadataRecord<string, any>Custom key-value data for this file.
imageFileImagePresent only when type is "image". Contains processed image variants.
createdAtDateWhen the file was uploaded.
updatedAtDateWhen the file record was last updated.

FileImage

For image files, the image field contains processing results and variant URLs.
PropertyTypeDescription
fileIdstringThe parent file’s ID.
originalWidthnumberWidth of the original image in pixels.
originalHeightnumberHeight of the original image in pixels.
variantsRecord<string, FileImageVariant>Processed variants keyed by size name (e.g. thumbnail, small, medium, large).
processingStatus"completed" | "failed"Whether image processing succeeded.
processingErrorstring | nullError message if processing failed.
formatstringThe output format requested by the uploader (e.g. "webp").
qualitynumberThe output quality requested (1–100).
exifStrippedbooleanWhether EXIF metadata was removed from the output.
createdAtDateWhen the image record was created.
updatedAtDateWhen the image record was last updated.

FileImageVariant

Each entry in FileImage.variants has this shape:
PropertyTypeDescription
pathstringRelative storage path for this variant.
publicPathstringProxied public URL for this variant.
widthnumberWidth of this variant in pixels.
heightnumberHeight of this variant in pixels.
sizenumberFile size of this variant in bytes.
formatstringFormat of this variant (e.g. "webp", "jpeg").

See Also