Versions Compared

Key

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

...

Code Block
languagejs
var fileId = $Xml.Evaluate('File/FileId');
//Create File Transfer Option..
var fileTransferOptions = {
    RemoteHost : '192.168.1.28',
    RemotePath : 'testfolder' + '/' + 'testdoc.pdf',
    Username : 'myUsername',
    Password : 'myPassword',
    Protocol : 'FTP'
};

//Uploading..
$Files.Upload(fileId, fileTransferOptions)
````
@see {@link FileTransferOptions}`

Types

FileTransferOptions

{ // Password to authenticate on remote environment. Optional. Password : string // Port number of remote environment. Optional. Port : number // Protocol : string RemoteHost : string RemotePath : string to use for file transfer. Optional. Default is FTP. Protocol : ( "FTP" | "FTPS" | "SFTP" | "HTTP" | "HTTPS" ) // IP address or host name of remote environment. RemoteHost : string // Path of file on remote environment. RemotePath : string // Username to authenticate on remote environment. Optional. UserName : string }