IFileRepositoryService.Upload Method

The Upload method is used to upload a specified file to the FileRepository.

Namespace – ABSuite.AccessLayer.Connector.Core

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

Syntax

bool Upload(
   string file
)

Argument

Return Value

This method returns true if the specified file is uploaded successfully to the FileRepository; otherwise, it returns false.

Using the IFileRepositoryService Interface for the Upload Method

The following code is an example of using the Upload() method:

fileRepos.Upload(("c:\\temp\\FREPOS\\Images\\Test.jpg"););

Note: The credentials being used to run the client application must have access rights to the file shared on the server machine to upload a file.