Skip to content

fix: add more mime types for csv#620

Merged
MthwRobinson merged 4 commits intomainfrom
fix/more-csv-mime-types
May 19, 2023
Merged

fix: add more mime types for csv#620
MthwRobinson merged 4 commits intomainfrom
fix/more-csv-mime-types

Conversation

@MthwRobinson
Copy link
Copy Markdown
Contributor

Summary

Adds more MIME types for CSVs because not every system uses the standard text/csv.

@MthwRobinson MthwRobinson requested a review from qued May 19, 2023 20:22
@MthwRobinson MthwRobinson enabled auto-merge (squash) May 19, 2023 20:22
Comment on lines +96 to +100
"text/x-csv": FileType.CSV,
"application/csv": FileType.CSV,
"application/x-csv": FileType.CSV,
"text/comma-separated-values": FileType.CSV,
"text/x-comma-separated-values": FileType.CSV,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These will need to be excluded when we reverse the dict for FILETYPE_TO_MIMETYPE.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excluded! Though they're sad they didn't get an invite

Copy link
Copy Markdown
Contributor

@qued qued left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MthwRobinson MthwRobinson merged commit fda51d6 into main May 19, 2023
@MthwRobinson MthwRobinson deleted the fix/more-csv-mime-types branch May 19, 2023 21:40
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 this pull request may close these issues.

2 participants