相对路径定位
This commit is contained in:
@@ -211,8 +211,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
public async Task<FileContentResult> NoneDicomFilePreview(string relativePath)
|
||||
{
|
||||
var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).IfNullThrowException().FullName;
|
||||
|
||||
var _fileStorePath = Path.Combine(rootPath, relativePath);
|
||||
|
||||
var _fileStorePath = Path.Combine(rootPath, relativePath.Replace('/', '\\'));
|
||||
|
||||
var storePreviewPath = _fileStorePath + ".preview.jpeg";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user