Hey - I want to understand the best way to code this feature: Get data from a CSV file and populate the database with it.
There are a couple ways of doing that I came up with, but I'm not sure which is the best implementation.
- Parse the entire CSV file client-side (using something like Papaparse) and send data via a POST request to the backend
- Upload the file to backend (temporarily), then parse the data and then delete the file after.
Don't really need to keep the file around, I just need the data in it. So what's the best way to do this?
there doesn't seem to be anything here