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.
Namespace: OddPrg.CommunicationAssembly: OddPrg.Communication (in OddPrg.Communication.dll) Version: 2.0.0.2 (2.0.0.2)
public string Upload(
string sourceFileName,
string remoteFileNameWithoutPath,
string mimeType,
CancellationToken cancelToken
)
- 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
StringReturns possible server response to check the upload result.