ClientSftpChannel - Upload
[C]
__cdecl FlowSshC_ClientSftpChannel_Upload(
FlowSshC_ClientSftpChannel* channel,
wchar_t const* localPath,
wchar_t const* remotePath,
unsigned int transferFlags,
FlowSshC_TransferHandler handler,
void* handlerData);
[C++]
[ClientSftpChannel] void Upload(
wchar_t const* localPath,
wchar_t const* remotePath,
unsigned int transferFlags,
RefPtr<TransferHandler> const& transfer);
[C#]
[ClientSftpChannel] public void Upload(
string localPath,
string remotePath,
TransferFlags transferFlags,
TransferHandler transfer);
Parameters
- [C] channel: FlowSshC_ClientSftpChannel pointer.
- [C] handler: A TransferHandler function to be used with the request. Optional.
- [C] handlerData: An application-defined value to be passed to the handler. Optional.
- localPath: A string that specifies the name of the local file. *
- remotePath: A string that specifies the name of the remote file. *
- transferFlags: A TransferFlags bitflag enumeration.
- [C++/.NET] transfer: A TransferHandler object to be used with the request. Optional.
Remarks
Initiates an upload operation. You can track the operation through the supplied transfer handler.
* See ClientSftpChannel's remarks about local and remote file namings.