优化上传代码
This commit is contained in:
@@ -32,10 +32,7 @@ namespace IRaCIS.Core.API
|
||||
|
||||
|
||||
var uploadPath = Path.Combine(Directory.GetParent(_hostEnvironment.ContentRootPath.TrimEnd('\\')).FullName, StaticData.UploadFileFolder);
|
||||
//var dicomPath = Path.Combine(Directory.GetParent(env.ContentRootPath.TrimEnd('\\')).FullName, StaticData.TrialDataFolder);
|
||||
|
||||
//var systemDataFolder = Path.Combine(Directory.GetParent(env.ContentRootPath.TrimEnd('\\')).FullName, StaticData.SystemDataFolder);
|
||||
|
||||
|
||||
|
||||
if (!Directory.Exists(uploadPath))
|
||||
{
|
||||
@@ -48,49 +45,9 @@ namespace IRaCIS.Core.API
|
||||
RequestPath = $"/{StaticData.UploadFileFolder}"
|
||||
});
|
||||
|
||||
//if (!Directory.Exists(dicomPath))
|
||||
//{
|
||||
// Directory.CreateDirectory(dicomPath);
|
||||
//}
|
||||
|
||||
//if (!Directory.Exists(systemDataFolder))
|
||||
//{
|
||||
// Directory.CreateDirectory(systemDataFolder);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//app.UseStaticFiles(new StaticFileOptions
|
||||
//{
|
||||
// FileProvider = new PhysicalFileProvider(dicomPath),
|
||||
// RequestPath = $"/{StaticData.TrialDataFolder}"
|
||||
//});
|
||||
|
||||
//app.UseStaticFiles(new StaticFileOptions
|
||||
//{
|
||||
// FileProvider = new PhysicalFileProvider(systemDataFolder),
|
||||
// RequestPath = $"/{StaticData.SystemDataFolder}"
|
||||
//});
|
||||
|
||||
|
||||
#region 兼容之前的文档能查看
|
||||
|
||||
//var comonPathPath = Path.Combine(Directory.GetParent(env.ContentRootPath.TrimEnd('\\')).FullName, StaticData.CommonFileFolder);
|
||||
|
||||
//var systemNoticePath = Path.Combine(Directory.GetParent(env.ContentRootPath.TrimEnd('\\')).FullName, StaticData.SystemNoticeFolder);
|
||||
|
||||
//if (!Directory.Exists(comonPathPath))
|
||||
//{
|
||||
// Directory.CreateDirectory(comonPathPath);
|
||||
//}
|
||||
//app.UseStaticFiles(new StaticFileOptions
|
||||
//{
|
||||
// FileProvider = new PhysicalFileProvider(comonPathPath),
|
||||
// RequestPath = $"/{StaticData.CommonFileFolder}"
|
||||
//});
|
||||
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user