相对路径定位

Uat_Study
hang 2022-05-19 16:58:50 +08:00
parent 76aa9de80c
commit ca5f8d839c
1 changed files with 2 additions and 2 deletions

View File

@ -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";