azavea / azavea/django-queryset-csv
csv download has no extension
- Dominant language
- Python
- Stars
- 188
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
Hi, this library works great for me with one exception: when I save the download and look in Explorer to open the file, it just shows up as a generic file (not a csv). The only file type option to save the file is "all files". This is confirmed by examining the file's properties. If I manually add the file extension by editing the file name, then the file opens just fine.
This error occurs whether I specify a file name or not.
On the initial download pop up (where it asks you to either save or open), it shows file type as "application/vnd.ms-excel".
Any help with this would be greatly appreciated. Thanks.
Contributor guide
Research direction
No file or test is named in the report. Reproduce the download in Windows Explorer, then trace the repository's CSV download entry point and inspect how the response names the file and declares its type. Done means the download is recognized as a CSV without manual renaming.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100