Page tree
Skip to end of metadata
Go to start of metadata


FileInfo Files.Upload ( id, options )

Uploads the specified file to remote environment.


String id

 Id number of file to upload

FileTransferOptions options


  • If port number is specified passive mode is automatically disabled, to enable it please remove the port number from options.


Uploading file via FTP into a folder located on a remote server
var fileId = $Xml.Evaluate('File/FileId');
//Create File Transfer Option..
    var fileTransferOptions = {           
            RemoteHost: '',
            RemotePath: 'testfolder' + '/' + 'testdoc.pdf',
            Username: 'myUsername',
            Password: 'myPassword',
            Protocol: 'FTP'

See Also