FileInfo
Definition
Section titled “Definition”interface FileInfo { file: File; content: string; filename: string; type: string;
wb?: any; json?: any; csv?: any; category?: string;
[key: string]: any;}Properties
Section titled “Properties”The File-object uploaded by the user.
filename: string
Section titled “filename: string”A shortcut to File.name.
lcFilename: string
Section titled “lcFilename: string”A shortcut to filename.toLowerCase().
content: string or ArrayBuffer
Section titled “content: string or ArrayBuffer”Most likely a string representation of the file if possible. Shortcut to FileReader.result.
category: string
Section titled “category: string”One of the values (based on the file extension):
ExcelImportCsvImportJsonImportwb: any
Section titled “wb: any”If category is ExcelImport this object is a XLSX.WorkBook.
csv: any
Section titled “csv: any”If category is CsvImport this object is a Papa Parse Result Object.
JSON: any
Section titled “JSON: any”If category is JsonImport this object is a simple JavaScript object representing the JSON content of the file.