downloadFile Method

Download a file.

downloadFile(requestContext: AuthorizedClientRequestContext, downloadUrl: string, path: string, fileSize?: number, progress?: ProgressCallback, cancelRequest?: CancelRequest): 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 ProgressCallback  
cancelRequest CancelRequest  

Returns - Promise<void>

Last Updated: 12 June, 2024