You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Content-Type header for exported .xlsx files is incorrectly set to application/vnd.ms-excel. This causes e.g. Firefox to incorrectly indicate the file type of the download as "Microsoft Excel 97-2003 Worksheet". It also results in the following error when opening directly in Excel (at least for Windows 10/Firefox/Excel 2019): "The file format and extension of 'table.xlsx-1.xls' don't match. The file could be corrupted or unsafe. ...". The files do open after that, but the error is a bit unsettling.
Content-Type
header for exported.xlsx
files is incorrectly set toapplication/vnd.ms-excel
. This causes e.g. Firefox to incorrectly indicate the file type of the download as "Microsoft Excel 97-2003 Worksheet". It also results in the following error when opening directly in Excel (at least for Windows 10/Firefox/Excel 2019): "The file format and extension of 'table.xlsx-1.xls' don't match. The file could be corrupted or unsafe. ...". The files do open after that, but the error is a bit unsettling.The MIME type of the resultant file is correct:
The fix here is to change this line to indicate the correct content type of
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.I've tested the above change, and it behaves as expected. I'm happy to open a PR if that is helpful
Thanks!
The text was updated successfully, but these errors were encountered: