interface FileReader
implements 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

readonly
error: DOMException | null
[src]
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null[src]
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null[src]
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null[src]
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null[src]
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null[src]
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null[src]
readonly
readyState: number
[src]
readonly
result: string | ArrayBuffer | null
[src]
readonly
DONE: number
[src]
readonly
EMPTY: number
[src]
readonly
LOADING: number
[src]

Methods

abort(): void[src]
readAsArrayBuffer(blob: Blob): void[src]
readAsBinaryString(blob: Blob): void[src]
readAsDataURL(blob: Blob): void[src]
readAsText(blob: Blob, encoding?: string): void[src]
addEventListener<K extends keyof FileReaderEventMap>(
type: K,
listener: (this: FileReader, ev: FileReaderEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void
[src]
removeEventListener<K extends keyof FileReaderEventMap>(
type: K,
listener: (this: FileReader, ev: FileReaderEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void
[src]
variable FileReader
{ prototype: FileReader; readonly DONE: number; readonly EMPTY: number; readonly LOADING: number; new (): FileReader; }[src]