ADO.NET Provider for SFTP

Build 24.0.9060

Upload

Upload a file to the remote FTP server.

Input

Name Type Required Accepts Input Streams Description
LocalFile String False False Specify one file to be uploaded.
LocalFolder String False False Specify one folder to be uploaded. Either specify this or LocalFile for a single object and not both.
RemotePath String False False The destination path on the remote host.
RemoteFile String False False The file name on the remote host. Required if uploading a single file (LocalFile specified) and StoreUnique is not specified.
TransferMode String False False The mode to be used to transfer the file.

The allowed values are DEFAULT, ASCII, BINARY.

The default value is DEFAULT.

Overwrite Boolean False False Whether to overwrite Remote Files.

The default value is false.

Content String False True The content as InputStream to be uploaded when LocalFile or LocalFolder is not specified.
IgnoreOverwriteExceptions Boolean False False An indicator to decide if the operation should continue if there is a problem with any of the files when Overwrite sets to false.

The default value is false.

Result Set Columns

Name Type Description
UniqueFileName String Generated filename when StoreUnique parameter is set to true.
Success String This parameter sets whether the operation was successful or not.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060