Uploads stream into remote file..
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
Parameters
- input
- Type:
System.IO Stream
Data input stream.
- path
- Type:
System String
Remote file path.
- canOverride
- Type:
System Boolean
if set to true then existing file will be overwritten.
- uploadCallback (Optional)
- Type:
System Action
UInt64
The upload callback.
Exceptions
| Exception | Condition |
|---|---|
| input is null. | |
| path is null or contains whitespace characters. | |
| Renci.SshNet.Common SshConnectionException | Client is not connected. |
| Renci.SshNet.Common SftpPermissionDeniedException | Permission to upload the file was denied by the remote host. -or- A SSH command was denied by the server. |
| Renci.SshNet.Common SshException | A SSH error where |
Remarks
See Also