Chrome file upload is not recognized accept mimetype 'text / csv'

I am trying to limit the files shown in the popup selector when using chrome for csv files only (I would settle for text files only, including csvs).

I've tried the following options accept

:

  • text/csv

    ; Displayed files
  • text/comma-separated-values

    ; Displayed files
  • application/csv

    ; Displayed files
  • application/excel

    ; Displayed files
  • application/vnd.ms-excel

    ; 97-03 Excel workbook but no csvs
  • text/*

    ; Some text files are shown but no csvs
  • application/*

    ; Some application files are shown, but no csvs

Did I miss something?

+3


source to share


1 answer


The solution is simple, although not very intuitive considering the other mime types.



Just use .csv

and Chrome will filter your files properly.

+1


source







All Articles