django-rest-framework-csv
django-rest-framework-csv copied to clipboard
IE11 Does not Download CSV, Chrome on Windows saves file as ".txt"
trafficstars
There seems to be some mime-type/content-type issues with this renderer. On my Mac, I have no issues, however Windows users experience problems with both Chrome and IE11. On Chrome, the file is downloaded without an extension, and on IE11, the contents are just rendered to the browser.
The answer on this page seems to indicate the problem: http://stackoverflow.com/questions/1382604/what-to-set-as-mimetype-for-csv-files-to-open-in-spreadsheet-applications
We need to set the Content-Disposition and the filename.
Ping
This issue also affects Chrome on windows.