Click or drag to resize

SftpClientUploadFile(Stream, String, Boolean, ActionUInt64) Method

Uploads stream into remote file..

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public void UploadFile(
	Stream input,
	string path,
	bool canOverride,
	Action<ulong> uploadCallback
)

Parameters

input  Stream
Data input stream.
path  String
Remote file path.
canOverride  Boolean
if set to true then existing file will be overwritten.
uploadCallback  ActionUInt64
The upload callback.
Exceptions
ExceptionCondition
ArgumentNullExceptioninput is null.
ArgumentExceptionpath is null or contains whitespace characters.
SshConnectionExceptionClient is not connected.
SftpPermissionDeniedExceptionPermission to upload the file was denied by the remote host.

-or-

A SSH command was denied by the server.
SshExceptionA SSH error where Message is the message from the remote host.
Remarks
Method calls made by this method to input, may under certain conditions result in exceptions thrown by the stream.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also