AboutSupportDeveloper GuideVersion 41.133.100.79

Generated during file download progress.

interface FileDownloadProgressEvent {
    contentDisposition: string;
    downloadedBytes: number;
    eTag: string;
    fileName: string;
    fileUuid: string;
    lastModifiedTime: Date;
    mimeType: string;
    name: string;
    originalFileName: string;
    startTime: number;
    state: "progressing" | "interrupted";
    topic: string;
    totalBytes: number;
    type: "file-download-progress";
    url: string;
    uuid: string;
}

Properties

contentDisposition: string

The value of the Content-Disposition field from the response header.

downloadedBytes: number

The number of bytes of the item that have already been downloaded.

eTag: string

The value of the ETag header.

fileName: string

The name used to save the file locally.

fileUuid: string

Unique identifier for the downloaded file.

lastModifiedTime: Date

The value of the Last-Modified header.

mimeType: string

The file mime type.

name: string
originalFileName: string

The original name of the file.

startTime: number

The number of seconds since the UNIX epoch when the download was started.

state: "progressing" | "interrupted"

The file download state.

topic: string

The "kebab-case" classname of the emitter that raised the event.

OpenFin.Frame is represented as iframe.

totalBytes: number

The total size in bytes of the file.

type: "file-download-progress"

The type of event that was raised. Equal to the typename of the event payload in "kebab case".

Guaranteed to be unique within each topic, but can be repeated between topics (e.g. WebContentsEvents.CrashedEvent and ApplicationEvents.CrashedEvent).

url: string

The url from which the file is being downloaded.

uuid: string