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
363 stars 60 forks source link

[Question] It is possible to upload a file along with data parsing method #151

Closed onkartibe closed 1 year ago

onkartibe commented 1 year ago

Hi

I am using react-papaparse and would like to upload the actual file along with CSV parsing. Is there a way to access actual file object?

I tried onDropAcceppted method but no luck.

Note: I am using onUploadAccepted to parse the CSV already.

onkartibe commented 1 year ago

ohh got the answer.

onUploadAccepted has 3 properties result, file and event.

Can access file object now.