FileMetadata: {
    contentType: string;
    etag: string;
    fileSize: FileSize;
    updatedAt: Date;
}

Metadata information about a stored file. Contains versioning, type, size, and modification tracking information.

IMPORT_PATH: "@daiso-tech/core/file-storage/contracts"

Type declaration

  • contentType: string

    MIME type of the file (e.g., 'application/json', 'image/png', 'text/plain'). Determines how the file should be interpreted and processed.

  • etag: string

    Entity tag (ETag) for cache invalidation and version tracking. Changes whenever the file content is updated.

  • fileSize: FileSize

    Size of the file in bytes.

  • updatedAt: Date

    Timestamp of when the file was last modified or uploaded.