API Reference > imodeljs-clients > iTwinServiceClients > FileHandler > downloadFile downloadFile Method Download a file. downloadFile(requestContext: AuthorizedClientRequestContext, downloadUrl: string, path: string, fileSize?: number, progress?: (progress: ProgressInfo) => void): Promise<void> Parameter Type Description requestContext AuthorizedClientRequestContext The client request context downloadUrl string URL to download file from. path string Path to download the file to, including file name. fileSize number Size of the file that's being downloaded. progress (progress: ProgressInfo) => void Returns - Promise<void> Defined in core/clients/src/FileHandler.ts Line 25 Last Updated: 13 June, 2024