Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot upload TSV file to bulk matching #1349

Closed
mdoering opened this issue Jan 18, 2024 · 4 comments
Closed

Cannot upload TSV file to bulk matching #1349

mdoering opened this issue Jan 18, 2024 · 4 comments
Assignees

Comments

@mdoering
Copy link
Member

Who uploading a TSV file with the .tsv file suffix the API responds with a 503. I presume a wrong content type is send?
When renaming the file to .txt it all works.

@mdoering
Copy link
Member Author

Example
observations_20230525_1305xx.tsv.zip

@thomasstjerne
Copy link
Contributor

I think the API should actually accept text/tab-separated-values for .tsv: https://mimetype.io/text/tab-separated-values

The UI does not actively handle mime types - it just sends what the file system says.

If it is tedious for the backend, I can surely do an exception and explicitly change mime type for .tsv

@mdoering
Copy link
Member Author

Easy to add, will do that. Do you know where exactly it is decided what mime type is send? There are so many for most types, even for json and especially for zip and compression

@mdoering
Copy link
Member Author

CSV is interesting too, text/comma-separated-values is deprecated https://mimetype.io/text/csv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants