Skip to main content

FILE_CONSTANTS

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/config/constants / FILE_CONSTANTS

Variable: FILE_CONSTANTS

const FILE_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"