Skip to main content

FileReader

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

Jump to headingreadAsText(
blob: Blob,
encoding?: string,
): void
Jump to headingaddEventListener<K extends keyof FileReaderEventMap>(
type: K,
listener: () => any,
options?: boolean | AddEventListenerOptions,
): void
Jump to headingremoveEventListener<K extends keyof FileReaderEventMap>(
type: K,
listener: () => any,
options?: boolean | EventListenerOptions,
): void
Back to top