IFileRepositoryService.UploadAsync Method

The UploadAsync method performs the upload processing to send a file to the server.

Namespace – ABSuite.AccessLayer.Connector.Core

Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)

Syntax

Task<bool> UploadAsync(
   string file
)

Argument

Return Type

This method returns true if the upload is successful; otherwise, it returns false.

Using the IFileRepositoryService Interface for the UploadAsync Method

The following code is an example of using the UploadAsync method:

await fileRepos.UploadAsync(("c:\\temp\\FREPOS\\Images\\Picture.jpg"););