-
-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Excel files exported but do not show associated with Excel in Firefox #500
Comments
This issue was automatically closed by our bot because it does not meet our issue template requirements. Please fill in the questions/sections required in the issue template before submitting a new issue. Thank you. |
I don't typically deal with issues closed by the bot but I see this as a valid issue, just make sure to fill in all required section of the issue template next time to avoid having the bot auto-closing the issue, it's mainly in place to avoid seeing poorly detailed issues. As for the issue with Firefox, I can reproduce but I'm not sure how to fix it since the Blob is not created in my lib but rather by the |
Thanks for looking into it. I was not sure, which data i have missed it. Will try to follow the guidelines next time. |
The template required fields all have the As for the issue itself, I found how to pass the mime type to the external lib in the 2nd argument for the options, the following seems to work const mimeType = this._fileFormat === FileType.xls ? 'application/vnd.ms-excel' : 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet ';
ExcelBuilder.Builder.createFile(this._workbook, { type: 'blob', mimeType }); I think that is the correct type for both |
Yes mime type is correct for both xls and xlsx. |
This is now fixed in latest version 2.19.x. Please upvote ⭐ if you haven't already. |
I'm submitting a Bug report
Your Environment
Describe the Bug
Exporting data through excel export service. In chrome download is working fine.
But in firefox the file is not associated with Excel, instead it has been marked as zip.
Steps to Reproduce
ExcelExport in Firefox
Expected Behavior
exported file should be associated with Excel
Possible Solution
During blob creation, we need to specify the mime type of the file. So that browser will detect the type and it will show the correct associated application.
The text was updated successfully, but these errors were encountered: