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