Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

FileInfo Files.Download(name: string, mimeType: string, options: FileTransferOptions)

Arguments

string name
Name of file to be saved.
string mimeType
Mime type of file
Download options. See ,FileTransferOptions, for more details.

Example

Code Block
languagejs
//Creating File Transfer Option
var fileTransferOptions = {
    RemoteHost: 'www.emakin.com',   //Url
    RemotePath: 'images/image.jpg', //Location
    Port: 80,                       //Port
    Protocol: 'HTTP'                //Protocol
};
 
//Downloading File
var file = $Files.Download("FileName", 'image/jpeg', fileTransferOptions);

Types

FileTransferOptions

...

{ Password : string Port : number Protocol : string RemoteHost : string RemotePath : string UserName : string }

Examples

Code Block
languagejs
//Creating File Transfer Option
var fileTransferOptions = {
    RemoteHost: 'www.emakin.com',   //Url
    RemotePath: 'images/image.jpg', //Location
    Port: 80,                       //Port
    Protocol: 'HTTP'                //Protocol
};
 
//Downloading File
var file = $Files.Download("FileName", 'image/jpeg', fileTransferOptions);