Skip to content

Commit

Permalink
🐛 Fixed csv file uploads on Windows w/Excel installed
Browse files Browse the repository at this point in the history
no issue

- refs https://forum.ghost.org/t/import-json-file-from-v-2-34-0-to-v-3-0-3-ignores-my-subscribers/10324
- Windows machines that have excel installed use a weird mime type for CSV files
- Users can fix this by adjusting their registry, but that's annoying
- We should just allow this, it doesn't really change anything & we still require .csv as the extension
  • Loading branch information
ErisDS committed Nov 26, 2019
1 parent 1578204 commit 8ad764a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/server/config/overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"uploads": {
"members": {
"extensions": [".csv"],
"contentTypes": ["text/csv", "application/csv", "application/octet-stream"]
"contentTypes": ["text/csv", "application/csv", "application/octet-stream", "application/vnd.ms-excel"]
},
"images": {
"extensions": [".jpg", ".jpeg", ".gif", ".png", ".svg", ".svgz", ".ico"],
Expand Down

0 comments on commit 8ad764a

Please sign in to comment.