interface FileReader
extends EventTarget
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.
Properties Jump to heading
readonly
Jump to headingerror: DOMException | null
Jump to headingonabort: ((this: FileReader,ev: ProgressEvent<FileReader>,) => any) | null
Jump to headingonerror: ((this: FileReader,ev: ProgressEvent<FileReader>,) => any) | null
Jump to headingonload: ((this: FileReader,ev: ProgressEvent<FileReader>,) => any) | null
Jump to headingonloadend: ((this: FileReader,ev: ProgressEvent<FileReader>,) => any) | null
Jump to headingonloadstart: ((this: FileReader,ev: ProgressEvent<FileReader>,) => any) | null
Jump to headingonprogress: ((this: FileReader,ev: ProgressEvent<FileReader>,) => any) | null
readonly
Jump to headingresult: string
| ArrayBuffer
| null
readonly
Jump to headingEMPTY: 0
readonly
Jump to headingLOADING: 1
readonly
Jump to headingDONE: 2
Methods Jump to heading
Jump to headingabort(): void
Jump to headingreadAsArrayBuffer(blob: Blob): void
deprecated
Jump to headingreadAsBinaryString(blob: Blob): void
Jump to headingreadAsDataURL(blob: Blob): void
Jump to headingreadAsText(blob: Blob,encoding?: string,): void
Jump to headingaddEventListener<K extends keyof FileReaderEventMap>(type: K,listener: (this: FileReader,ev: FileReaderEventMap[K],) => any,options?: boolean | AddEventListenerOptions,): void
Jump to headingaddEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | AddEventListenerOptions,): void
Jump to headingremoveEventListener<K extends keyof FileReaderEventMap>(type: K,listener: (this: FileReader,ev: FileReaderEventMap[K],) => any,options?: boolean | EventListenerOptions,): void