Upload multiple files to a remote server
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax bool UploadFile(
string localPath,
string localFile,
string remotePath,
string remoteFile,
FTPFileTransferAttributes transferAttrs,
FTPCreateDisposition disposition,
FTPRemoteAccessMode access
)
Function UploadFile (
localPath As String,
localFile As String,
remotePath As String,
remoteFile As String,
transferAttrs As FTPFileTransferAttributes,
disposition As FTPCreateDisposition,
access As FTPRemoteAccessMode
) As Boolean
Parameters
- localPath
- Type: SystemString
Full path to the local file - localFile
- Type: SystemString
A file name pattern to select files to upload. Accepts standard wildcard naming convention (e.g. *.xml to upload all xml files in the specified folder) - remotePath
- Type: SystemString
Path to store uploaded files on remote server - remoteFile
- Type: SystemString
Name of file on remote server after file transfer is complete - transferAttrs
- Type: NetQuarryFTPFileTransferAttributes
Specify Behavior of file transfer session - disposition
- Type: NetQuarryFTPCreateDisposition
Set the file creation properties for the transfer - access
- Type: NetQuarryFTPRemoteAccessMode
Set the file access properties for the transfer
Return Value
Type:
BooleanTrue upon successful transfer, else false.
See Also