We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be3b27 commit e41b3e1Copy full SHA for e41b3e1
core/storage.py
@@ -137,6 +137,7 @@ async def get_file_response(self, file_code: FileCodes):
137
content_disposition = f"attachment; filename*=UTF-8''{encoded_filename}"
138
return FileResponse(
139
file_path,
140
+ media_type="application/octet-stream",
141
headers={"Content-Disposition": content_disposition},
142
filename=filename # 保留原始文件名以备某些场景使用
143
)
0 commit comments