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

This commit is contained in:
Vijay Uppu
2023-12-04 14:28:13 -05:00
parent df98a1e0f4
commit 572b4dba66
9 changed files with 229 additions and 23 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