Versions Compared

Key

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

...

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

Arguments

string id
Id number of file to upload
Instance of ,file transferring options,. //TODO 1'den fazla kelime linklebilirlik içermeli.

...

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 : string Port : number Protocol : string RemoteHost : string RemotePath : string UserName : string }

Examples

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}