beamworks / react-csv-importer

Uploader + CSV parser + raw file preview + UI for custom user column mapping, all in one
https://www.npmjs.com/package/react-csv-importer
MIT License
231 stars 95 forks source link

How I can check file validation #79

Open mehul-accrete opened 2 years ago

mehul-accrete commented 2 years ago

Hi @unframework , I want to check file extension is valid or not, how I can do it. And how we can prevent import if invalid file extension?

unframework commented 2 years ago

Hmm, this could be a useful feature to add in. At which step of the process would you want to do this - before the user sees the raw file data preview?

mehul-accrete commented 2 years ago

@unframework It should be before preview, means when file select it should validate.

mehul-accrete commented 2 years ago

@unframework Any update on this? Because I have some urgent requirement it, else I need to integrate something else.

unframework commented 2 years ago

Hi Mehul, my day job has been really busy in the last couple weeks, but I should have time to look at this this week. I can't guarantee anything though - I want to be slow and careful with API design, etc, so you may need a fallback plan unfortunately. Sorry about that 😐

MusabShakeel576 commented 1 year ago

@unframework I would like to work on it, please assign.

devLeopar commented 1 year ago

Hey Guys;

Any update on this? Because when we try to upload .xlsx files, the encoding seems not working

image