Page tree

Versions Compared

Key

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

...

Method_argument
TypeFileTransferOptions
Nameoptions

Instance of file transferring options.


Remarks

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

Examples

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

...