changed download url format and added new endpoint for doculink isactive update

This commit is contained in:
Vijay Uppu
2023-12-04 14:52:24 -05:00
parent f8c7fce182
commit 3f41cf6e10
9 changed files with 230 additions and 24 deletions

View File

@ -24,6 +24,24 @@ namespace DamageAssesment.Api.Attachments.Providers
uploadpath = configuration.GetValue<string>("Fileupload:folderpath");
Deletepath = configuration.GetValue<string>("Fileupload:Deletepath");
}
public async Task<string> GetFile(string path)
{
try
{
if (System.IO.File.Exists(path))
{
return path;
}
return null; // File not found
}
catch (Exception ex)
{
// Handle or log the exception as needed
throw;
}
}
public async Task<byte[]> DownloadFile(string path)
{
try