From fa5de10b21cbdda8d239365a06b0f50d61e43d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=A7=E6=9F=9A?= Date: Thu, 2 Feb 2023 07:11:33 +0000 Subject: [PATCH] =?UTF-8?q?update=20handbook/docs/file-provider.mdx.=2031.?= =?UTF-8?q?6.1=20=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD=20=20byte[]=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=20=20=E8=BF=94=E5=9B=9E=E7=9A=84FileStreamResult?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BAFileContentResult?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 大柚 --- handbook/docs/file-provider.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handbook/docs/file-provider.mdx b/handbook/docs/file-provider.mdx index c6dc22451f..f7497da2d5 100644 --- a/handbook/docs/file-provider.mdx +++ b/handbook/docs/file-provider.mdx @@ -160,7 +160,7 @@ public IActionResult FileDownload() [HttpGet, NonUnify] public IActionResult FileDownload() { - return new FileStreamResult(byte数组, "application/octet-stream") { + return new FileContentResult(byte数组, "application/octet-stream") { FileDownloadName = fileName // 配置文件下载显示名 }; } -- Gitee