I am trying to create a utility website that will parse csv files uploaded by clients. I want the processing to happen completely on the client side rather than having the file be uploaded to some server and then some server program parsing out the contents of the file. Is this possible? I'm a backend guy so any frontend advice would be helpful.
If you are willing to restrict to supported browsers, you can use html 5 filereader API:
the main problem is ie < 10. http://caniuse.com/filereader
More info on File API:
browser load local file without upload
http://www.w3.org/TR/FileAPI/
once you access the file, parsing the csv with javascript is easy with existing libraries such as:
https://github.com/gkindel/CSV-JS
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With