FILE_CONSTANTS
FitFileViewer - API Documentation v29.4.0
FitFileViewer - API Documentation / utils/config/constants / FILE_CONSTANTS
Variable: FILE_CONSTANTS
constFILE_CONSTANTS: {SUPPORTED_EXTENSIONS:string[];SUPPORTED_MIME_TYPES:string[];MAX_FILE_SIZE:number;EXPORT_FORMATS: {CSV:string;GPX:string;JSON:string; };DEFAULT_EXPORT_FORMAT:string;IFRAME_PATHS: {ALT_FIT:string; }; }
Defined in: utils/config/constants.js:176
File handling constants
Type Declarationβ
SUPPORTED_EXTENSIONSβ
SUPPORTED_EXTENSIONS:
string[]
Supported file types
SUPPORTED_MIME_TYPESβ
SUPPORTED_MIME_TYPES:
string[]
MAX_FILE_SIZEβ
MAX_FILE_SIZE:
number
File size limits (in bytes)
EXPORT_FORMATSβ
EXPORT_FORMATS: {
CSV:string;GPX:string;JSON:string; }
Export formats
EXPORT_FORMATS.CSVβ
CSV:
string="csv"
EXPORT_FORMATS.GPXβ
GPX:
string="gpx"
EXPORT_FORMATS.JSONβ
JSON:
string="json"
DEFAULT_EXPORT_FORMATβ
DEFAULT_EXPORT_FORMAT:
string="gpx"
IFRAME_PATHSβ
IFRAME_PATHS: {
ALT_FIT:string; }
File paths
IFRAME_PATHS.ALT_FITβ
ALT_FIT:
string="ffv/index.html"