Skip to content

FileManager.promptForImageDownload method

FileManager › promptForImageDownload

Unofficial

Prompt the user to download an image.

Signature:

promptForImageDownload(urls: string[]): Promise<null | Record<string, TFile> | undefined>

Parameters:

Parameter Type Description
urls string[] The URLs of the images to download.

Returns: Promise<null | Record<string, TFile> | undefined>A promise that resolves to a mapping of URL to file, or null/undefined.