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

"Download as CSV" results in .css file on disk #866

Open
berndfo opened this issue Jan 27, 2023 · 2 comments
Open

"Download as CSV" results in .css file on disk #866

berndfo opened this issue Jan 27, 2023 · 2 comments

Comments

@berndfo
Copy link

berndfo commented Jan 27, 2023

Current behavior

When clicking the "Download as CSV" link, the download (via Chrome) actual results in a file named ".css" (sic!).
When trying to open it, an application for a Cascading Style Sheets is suggested.
The content of the file actually is in CSV format, which is good.

Interesting response headers from the download request:

  • content-disposition: "attachment; filename=interactive-landscape.csv" (correct, but extension is not used by Chrome!)
  • content-type: "text/css" (not correct!)

The browser ignores the supplied file name extension and renames it to ".css".

Expected behavior

Response carries content type header with value "text/csv".
File actually downloads with a CSV extension, is easily opened by a CSV-handling application.

Looks like a one character fix.

@AndreyKozlov1984
Copy link
Contributor

Oops, thank you!

@jmhbnz
Copy link

jmhbnz commented Apr 10, 2023

/assign @jmhbnz

Thanks for reporting this @berndfo. I have raised the quick fix here #876

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants