Merge branch 'abp' into ai-hub
# Conflicts: # Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/FileService.cs
This commit is contained in:
@@ -55,11 +55,11 @@ namespace Yi.Framework.Rbac.Application.Services
|
|||||||
{
|
{
|
||||||
return new NotFoundResult();
|
return new NotFoundResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
var steam = await File.ReadAllBytesAsync(path);
|
var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||||
return new FileContentResult(steam, file.GetMimeMapping());
|
return new FileStreamResult(stream, file!.GetMimeMapping());
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 上传文件
|
/// 上传文件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user