Merge branch 'abp' into ai-hub

# Conflicts:
#	Yi.Abp.Net8/module/rbac/Yi.Framework.Rbac.Application/Services/FileService.cs
This commit is contained in:
chenchun
2025-11-06 11:23:46 +08:00

View File

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