Excel file download via HTMX request results in corrupted or blank file

I am trying to download an Excel file (.xlsx) using an HTMX request in a Django application. The request is triggered correctly, and the response is returned from the server, but the downloaded Excel file is either corrupted or opens as a blank file.

Вернуться на верх