Get archive path from storage path on settings

dhcp-server
Pat Hartl 2023-09-12 20:23:06 -05:00
parent 026efd586a
commit 4476fbed5f
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ namespace LANCommander.Services
public static string GetArchiveFileLocation(string objectKey)
{
return $"Upload/{objectKey}".ToPath();
var settings = SettingService.GetSettings();
return Path.Combine(settings.Archives.StoragePath, objectKey);
}
public override Task Delete(Archive archive)