TVirtualUI.DownloadFile Method (WideString, WideString, WideString)

Sends the specified file to the end-user's web browser for saving it in the remote machine.

Pascal

procedure DownloadFile(const LocalFilename: WideString; const RemoteFilename: WideString; const MimeType: WideString); safecalloverload;

Parameters

Parameters

Description

const LocalFilename: WideString

Name of the local file to be sent.

const RemoteFilename: WideString

Name of the file in the remote machine.

const MimeType: WideString

content-type of the file. If specified, the content will be handled by browser. Leave blank to force download.

Group

DownloadFile Method