Bunlong / react-papaparse

react-papaparse is the fastest in-browser CSV (or delimited text) parser for React. It is full of useful features such as CSVReader, CSVDownloader, readString, jsonToCSV, readRemoteFile, ... etc.
https://react-papaparse.js.org
MIT License
370 stars 61 forks source link

Add props to change accept type on input element #69

Closed toantt28 closed 3 years ago

toantt28 commented 4 years ago

Hi, Your repo is great. But when I'm using this on different OS that I found a bug This is hard code so it hard for me to change accept type accept="text/csv" Above Code work fine on MacOS

But on Window10 / Ubuntu it should be this accept=".csv, application/vnd.ms-excel, text/csv"

Could you make a change let user can change it as props?

Bunlong commented 3 years ago

@toantt28 react-papaparse v3.10.0 has been released with accept property is a property to be used to set MIME type for CSV. Default is 'text/csv, .csv, application/vnd.ms-excel'. I would like to close the issue. Thanks!