CSV files have wrong type
See original GitHub issueCSV files should have a content-type of text/csv
(https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types).
Instead when they are added to uppy and when the request is sent they are treated as type: application/vnd.ms-excel
which is wrong. This happens on your online samples too
Dashboard sample (https://uppy.io/examples/dashboard/)
XHR sample (https://uppy.io/examples/xhrupload/)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Format of the CSV file isn't correct error - Office 365
To resolve this issue, follow these steps: ... On the Edit menu, select Replace. In the Find what box, type ", leave the...
Read more >The CSV file I exported looks strange, what can I do?
Once you have exported a CSV file from Vainu and opened it in Excel, you may come across data in the wrong format...
Read more >Dealing with the common problems with CSV files - CSV Loader
An overview of the most common issues that arise during the opening and import of data from CSV files, along with some advice...
Read more >How do I resolve the errors "Invalid CSV file" or "the ...
Verify that the CSV file is formatted the same way as our sample CSV file. · Eliminate any typos, namely incorrectly spelled column...
Read more >CSV file looks wrong. How to fix? - HiTech Service
Make sure that you saved all the changes. Close all open spreadsheets and open a CSV file once again. Everything should be displayed...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
hi @arturi @goto-bus-stop we have the issues on windows machines…after you mentioned it could be browser related I had a look around and there is actually an open issue with chromium about this: basically they do not have a default mapping for the
csv
files and that defaults to whatever mapping the os has (which in windows gets the excel typeapplication/vnd.ms-excel
). FF has a similar implementation and the result is the same. So basically it is a browser issue when using it on Windows with Excel installedTo double check that I tried with chrome on a macOs and the mime-type is correctly set to
text/csv
. I am closing the issue, thanks for your timeWe use it if the browser hasn’t detected a mime type: https://github.com/transloadit/uppy/blob/58f996c0e481a8ad7932ebd1d544dd730986d973/packages/%40uppy/utils/src/getFileType.js#L8-L14