From a75587894dd48f2560e58aca1169ef599716a328 Mon Sep 17 00:00:00 2001 From: Do1e Date: Tue, 5 Aug 2025 17:25:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=8D=E7=AC=A6=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20#372?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/storage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/core/storage.py b/core/storage.py index 7326140..ea40bea 100644 --- a/core/storage.py +++ b/core/storage.py @@ -137,6 +137,7 @@ class SystemFileStorage(FileStorageInterface): content_disposition = f"attachment; filename*=UTF-8''{encoded_filename}" return FileResponse( file_path, + media_type="application/octet-stream", headers={"Content-Disposition": content_disposition}, filename=filename # 保留原始文件名以备某些场景使用 )