Continue...

This commit is contained in:
Kevin Hu 2025-11-17 13:03:57 +08:00
parent 79c7aa6bf8
commit 67e2c04ccb

View file

@ -414,7 +414,7 @@ async def download(tenant_id, dataset_id, document_id):
return await send_file(
file,
as_attachment=True,
download_name=doc[0].name,
attachment_filename=doc[0].name,
mimetype="application/octet-stream", # Set a default MIME type
)