FileCommunicatorUpload Method

Uploads local file to this file storage. Before upload it checks if remote file exists and if yes, it deletes the remote file.

Definition

Namespace: OddPrg.Communication
Assembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
C#
public string Upload(
	string sourceFileName,
	string remoteFileNameWithoutPath,
	string mimeType,
	CancellationToken cancelToken
)

Parameters

sourceFileName  String
Source file name with full path.
remoteFileNameWithoutPath  String
Name of remote file to create.
mimeType  String
Type of the file used for upload. If it is null, it is determined from extension of remoteFileNameWithoutPath. It is used for SMTP and HTTP communicators.
cancelToken  CancellationToken

Return Value

String
Returns possible server response to check the upload result.

See Also