Click or drag to resize

CrestronFileTransferClientPutFile Method

Uploads local file to the remote destination pointed by URL. This method directly uses the URL supplied. Port number can be embedded into URL. Some examples of valid URL prefixed with the specified protocol - http://host.com/myPath/MyFile.txt, https://host.com/myPath/MyFile.txt, ftp://host.com:21/myPath/MyFile.txt, etc.

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public int PutFile(
	string url,
	string localPath
)

Parameters

url  String
The URL to the file intended for uploading
localPath  String
The fully qualified local path to the file being uploaded starting with initial "/"

Return Value

Int32
Zero if successful. -1 if underlying object has not been properly initialized. 1 if internal error occurred. Use GetLastClientError() to retrieve the error code. 87 if invalid parameter was passed.
Exceptions
ExceptionCondition
ObjectDisposedExceptionThe FTC Client has already been closed or disposed.
Remarks
Non-ASCII characters are not currently supported.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also