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
file – System.String
This argument specifies the file to be sent to the server.
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"););