nzambello / react-csv-reader

React component that handles csv file input and its parsing
https://nzambello.github.io/react-csv-reader/
MIT License
199 stars 48 forks source link

Filezie upload #27

Closed rasyid46 closed 4 years ago

rasyid46 commented 4 years ago

whether this library can detect file size ? thank you

nzambello commented 4 years ago

While adding TypeScript in the project, I made a change in the callback return type: now I return the data and an object with file infos: name, size and type. See #34 .

For reference: returned value for size property is documented here https://developer.mozilla.org/en-US/docs/Web/API/File/size

nzambello commented 4 years ago

Released in v3.0.0. See https://github.com/nzambello/react-csv-reader#onfileloaded