diff --git a/bemade_documents_portal/controllers/portal.py b/bemade_documents_portal/controllers/portal.py index 0e0c917..b33fe63 100644 --- a/bemade_documents_portal/controllers/portal.py +++ b/bemade_documents_portal/controllers/portal.py @@ -60,5 +60,6 @@ class DocumentCustomerPortal(CustomerPortal): headers = [ ('content-type', attachment.mimetype), ('content-length', attachment.file_size), + ('content-disposition', f'attachment; filename="{document.name}"') ] return request.make_response(attachment.raw, headers)