We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7be3b27 + e41b3e1 commit e513800Copy full SHA for e513800
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