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