Get archive path from storage path on settings

This commit is contained in:
Pat Hartl 2023-09-12 20:23:06 -05:00
parent 026efd586a
commit 4476fbed5f

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)