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

This commit is contained in:
Vijay Uppu
2023-12-04 14:56:13 -05:00
parent 9aa3f230c5
commit e58782243c
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