...
FileInfo Files.Download(name: string, mimeType: string, options: FileTransferOptions)
Arguments
string name
Name of file to be saved.
string mimeType
Mime type of file
FileTransferOptions options
Download options. See ,FileTransferOptions, for more details.
Example
Code Block | ||
---|---|---|
| ||
//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 | ||
---|---|---|
| ||
//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); |