系统通知修改
This commit is contained in:
@@ -205,6 +205,15 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
}
|
||||
|
||||
|
||||
//[HttpGet]
|
||||
//public async Task<FileContentResult> NoneDicomFilePreview(string relativePath)
|
||||
//{
|
||||
// var rootPath = Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).IfNullThrowException().FullName;
|
||||
|
||||
// var _fileStorePath = Path.Combine(rootPath, relativePath);
|
||||
|
||||
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 上传非Dicom 文件 支持压缩包
|
||||
@@ -296,11 +305,14 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
private string GetStoreFileName(string fileName)
|
||||
{
|
||||
var realName = fileName;
|
||||
//var realName = fileName;
|
||||
|
||||
var fileNameEX = Path.GetExtension(realName);
|
||||
//var fileNameEX = Path.GetExtension(realName);
|
||||
|
||||
var trustedFileNameForFileStorage = Guid.NewGuid().ToString() + fileNameEX;
|
||||
//var trustedFileNameForFileStorage = Guid.NewGuid().ToString() + fileNameEX;
|
||||
|
||||
|
||||
var trustedFileNameForFileStorage = Guid.NewGuid().ToString() + fileName;
|
||||
|
||||
return trustedFileNameForFileStorage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user