Get archive path from storage path on settings
This commit is contained in:
parent
026efd586a
commit
4476fbed5f
1 changed files with 3 additions and 1 deletions
|
@ -23,7 +23,9 @@ namespace LANCommander.Services
|
||||||
|
|
||||||
public static string GetArchiveFileLocation(string objectKey)
|
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)
|
public override Task Delete(Archive archive)
|
||||||
|
|
Loading…
Add table
Reference in a new issue