Interface: TabFileItem
Represents an item in a product's file download tab.
This interface defines a downloadable file associated with a product, including its metadata and access information. Files serve as supplementary resources for products, providing documentation, specifications, CAD models, or other content that enhances the product experience.
Each file has a clear identifier, path reference, and metadata about file size and type to help users understand what they're downloading before they commit.
Properties
extension
extension:
string
File extension indicating the file format.
This helps users understand the file type (PDF, DWG, DOCX, etc.) and what software they'll need to open it.
fileName
fileName:
string
Name of the file as it appears to users.
This human-readable filename is displayed in download lists and is used as the default name when users save the file to their device.
onlyLoggedIn
onlyLoggedIn:
boolean
Indicates whether the file is restricted to authenticated users.
When true
, only logged-in users can access this file, while public users
will see it as unavailable or requiring authentication.
s3Path
s3Path:
string
Relative path to the file in storage.
This path is used internally to locate the file when a download is requested. It's typically combined with a base CDN URL to form the complete download path.
size
size:
string
|number
Size of the file in human-readable format.
The file size is presented in a user-friendly format (e.g., "2.5 MB" rather than bytes) to help users understand the download's size.