Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Filepicker does not accept mimetype 'text/csv' on windows

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

like image 340
Ace Dimasuhid Avatar asked Jul 08 '13 02:07

Ace Dimasuhid


People also ask

What is the difference between text CSV and application CSV?

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.

Is CSV text plain?

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.

What is CSV format?

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.


1 Answers

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

like image 173
Liyan Chang Avatar answered Oct 31 '22 20:10

Liyan Chang