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