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 5 Next »

Overview

Uploads the specified file to remote environment.

void Files.Upload(id: string, options: FileTransferOptions)

Arguments

string id
Id number of file to upload
Instance of ,FileTransferOptions

Example

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 : '192.168.1.28',
    RemotePath : 'testfolder' + '/' + 'testdoc.pdf',
    Username : 'myUsername',
    Password : 'myPassword',
    Protocol : 'FTP'
};

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

Types

FileTransferOptions

Options for file transfer operations.

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

Examples

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 : '192.168.1.28',
    RemotePath : 'testfolder' + '/' + 'testdoc.pdf',
    Username : 'myUsername',
    Password : 'myPassword',
    Protocol : 'FTP'
};

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