IFTPUploadSingleFile Method |
Upload a single file to a remote server
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax bool UploadSingleFile(
string localFilePath,
string remotePath,
string remoteFile,
FTPFileTransferAttributes transferAttrs
)
Function UploadSingleFile (
localFilePath As String,
remotePath As String,
remoteFile As String,
transferAttrs As FTPFileTransferAttributes
) As Boolean
Parameters
- localFilePath
- Type: SystemString
Full path to the local file - remotePath
- Type: SystemString
Path to store uploaded file 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
Return Value
Type:
BooleanTrue if the file transfer was successful. To see the download status of each file transfer, inspect the
FileTransferResults property
See Also