Skip to main content

Interface: MetaFieldFileValue

Represents a file value within a metafield.

This interface defines the structure for file references stored in custom fields of type FILE. When users upload files through the configurator, the file data is stored separately and referenced through this structure, allowing efficient file management and retrieval.

File values maintain both a unique identifier and the storage path, ensuring files can be accessed both programmatically (via ID) and directly (via path) when needed for processing or display.

Properties

fileId

fileId: string

Unique identifier for the uploaded file.

This ID is generated when the file is uploaded and serves as the primary reference for file operations, ensuring consistent access even if the file is moved or renamed in storage.


filePath

filePath: string

Storage path where the file is located.

The relative or absolute path to the file in the storage system. This path is used for direct file access, preview generation, or when serving the file to users or production systems.