question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CSV files have wrong type

See original GitHub issue

CSV 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/) image

XHR sample (https://uppy.io/examples/xhrupload/) image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fildahuicommented, Mar 25, 2021

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 type application/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 installed

To 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 time

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found