Represents a downloaded file.

Properties

delete()

delete: () => Promise<void>;

Deletes the downloaded file.

Returns

Promise<void>


path()

path: () => Promise<null | string>;

Gets the path of the downloaded file.

Returns

Promise<null | string>


suggestedFilename()

suggestedFilename: () => undefined | string;

Returns suggested filename for this download. It is typically computed by the browser from the Content-Disposition response header or the download attribute. See the spec on whatwg. Different browsers can use different logic for computing it. when the file is downloaded using DirectLink or PrintPageAsPdf this will always return undefined,

Returns

undefined | string