I am using filepicker and set the mimetype for the upload on 'text/csv'. It works pretty well on Mac chrome, but on windows it does not. Any idea on how to fix this? Thanks.
Ace
If a server says "This data is of type text/csv" the client can understand that can render that data internally, while if the server says "This data is of type application/csv" the client knows that it needs to launch the application that is registered on the OS to open csv files.
A CSV file typically stores tabular data (numbers and text) in plain text, in which case each line will have the same number of fields. The CSV file format is not fully standardized.
A CSV (comma-separated values) file is a text file that has a specific format which allows data to be saved in a table structured format.
Try the alternative mimetypes as well:
text/comma-separated-values, text/csv, application/csv, application/excel, application/vnd.ms-excel, application/vnd.msexcel
Source: http://filext.com/file-extension/CSV
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With