variable FileReader
type
🔗
{ readonly prototype: FileReader; readonly DONE: number; readonly EMPTY: number; readonly LOADING: number; new (): FileReader; }
{ readonly prototype: FileReader; readonly DONE: number; readonly EMPTY: number; readonly LOADING: number; new (): FileReader; }
Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.
error: DOMException | null
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null
readyState: number
result: string | ArrayBuffer | null
DONE: number
EMPTY: number
LOADING: number
abort(): void
addEventListenerType Parameters
🔗
K extends keyof FileReaderEventMap
(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void
removeEventListenerType Parameters
🔗
K extends keyof FileReaderEventMap
(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void