I am developing this website where users can browse for a file, more specifically a .csv
file on their computer (clientside). I then want to send the contents of this .csv
file to my server. Once serverside, it will be stored into my database.
But firstly, I need to get the path of the .csv
file. So i assume i should allow the user to browse for the file from their computer. Then when the user has chose a file, the path will be stored into a variable such that i can proceed on to store the contents to my database.
I therefore have 3 questions:
- How do I allow for the user to browse the file?
- How do I retrieve the path client side?
- How do I store the retrieved path client side?
Code snippets and references will be appreciated.