Interface FileSaver

This interface provides methods to monitor the asynchronous writing of blobs to disk using progress events and event handler attributes.

Hierarchy

Index

Properties

Methods

Properties

public error: Error

The last error that occurred on the FileSaver.

public onabort: (event: ProgressEvent) => void

Handler for abort events.

public onerror: (event: ProgressEvent) => void

Handler for error events.

public onprogress: (event: ProgressEvent) => void

Handler for progress events.

public onwrite: (event: ProgressEvent) => void

Handler for write events.

public onwriteend: (event: ProgressEvent) => void

Handler for writeend events.

public onwritestart: (event: ProgressEvent) => void

Handler for writestart events.

public readyState: number

The FileSaver object can be in one of 3 states. The readyState attribute, on getting, must return the current state, which must be one of the following values: INIT WRITING DONE

Methods

public abort()

Terminate file operation

public addEventListener(type: string, listener: EventListener, useCapture?: boolean)

Parameters

  • type: string
  • listener: EventListener
  • useCapture?: boolean optional

public dispatchEvent(evt: Event): boolean

Parameters

  • evt: Event

Returns

boolean

public removeEventListener(type: string, listener: EventListener, useCapture?: boolean)

Parameters

  • type: string
  • listener: EventListener
  • useCapture?: boolean optional