Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Current »

Overview

Downloads a file from remote environment stores in repository and returns created file info.

FileInfo myFiles.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

Downloading file from url

//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

Options for file transfer operations.

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

See Also

  • No labels