Developer / Reference / TypeScript APIs / Interfaces

FileInfo

Last updated on 13-May-2020 by Jakob Jakobsen Boysen
Jakob Jakobsen Boysen

Platform Lead
boysen@scifeon.com

Definition

Properties

file:

File

The File-object uploaded by the user.

filename: string

A shortcut to File.name.

lcFilename: string

A shortcut to filename.toLowerCase().

content: string or ArrayBuffer

Most likely a string representation of the file if possible. Shortcut to FileReader.result.

category: string

One of the values (based on the file extension):

wb: any

If category is ExcelImport this object is a XLSX.WorkBook.

csv: any

If category is CsvImport this object is a Papa Parse Result Object.

JSON: any

If category is JsonImport this object is a simple JavaScript object representing the JSON content of the file.