Redesign CSV export to improve usability
See original GitHub issueOriginal title: Set content type for CSV so that browsers will attempt to download instead opening in the browser
Right now, if the user clicks on the CSV related to a table or a query, the response header for the content type is
“content-type: text/plain; charset=utf-8”
Most browsers will try to open a file with this content-type in the browser.
This is not what most people want to do, and lots of folks don’t know that if they want to download the CSV and open it in the a spreadsheet program they next need to save the page through their browser.
It would be great if the response header could be something like
'Content-type: text/csv');
'Content-disposition: attachment;filename=MyVerySpecial.csv');
which would lead browsers to open a download dialog.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
UI redesign to include more columns, saved searches ...
Recently we started the project to revamp the UI and improve the usability of the application. Our sincere thanks to all of you,...
Read more >Improve UX of "import to csv" modal · Issue #6431 - GitHub
Having it in the modal has improved the usability somewhat since it was sitting loose under gridfields but still room for improvements.
Read more >Designing User-Friendly Data Tables | UX Booth
At the very least, include an export CSV button with your data tables. If you have to push your table redesign to the...
Read more >Sharing and exporting results to CSV - UsabilityHub Help Center
How to export test results as a CSV. Similarly, at the top of the test results, select the Export results as CSV button....
Read more >Design Principles for Data Export - DiVA
The aim of this thesis was to identify the design principles to develop generic data export functionality in data-.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good call! I’m doing a refactor #1518 right now which will hopefully bring the functionality of those two much closer - I’ll make a note to consider this there too.
another way to get the behavior of downloading the file is to use the download attribute of the anchor tag
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download