Skip to content
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

[Bug] Wrong content type if download shared .xlsx file #1736

Open
Rotzbua opened this issue Jul 31, 2017 · 0 comments
Open

[Bug] Wrong content type if download shared .xlsx file #1736

Rotzbua opened this issue Jul 31, 2017 · 0 comments

Comments

@Rotzbua
Copy link

Rotzbua commented Jul 31, 2017

Hi,

I found a bug in the returned mime type for .xlsx files.

Steps to reproduce:

  1. Generate test excel file e.g. text.xlsx
  2. Generate share link
  3. Go to download site
  4. Click download button on download site
  5. Browser opens window where you can decide to:
    a. open with excel
    b. OR save file

Observed for:

a. if open with excel, file will be opened with excel but with filename text.xlsx.xls and not text.xlsx ! Which cause an error.
b. Save as file which will be correct as text.xlsx

Expected for:

a. Should be opened correctly as text.xlsx and not text.xlsx.xls

Suggested bug:

The return content type for the file will be:

Content-Type: application/vnd.ms-excel

But this is the content type of .xls, but excel recognize the ending .xlsx and so it add an .xls.

The correct content type of .xlsx seems to be

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

See: https://stackoverflow.com/a/4212908

Best

@Rotzbua Rotzbua changed the title Wrong content type if download shared .xlsx file [Bug] Wrong content type if download shared .xlsx file Aug 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants