How can I read a local file with Papa Parse? I have a file locally called challanges.csv
, but after many tried I can't parse it with Papa Parse.
var data;
Papa.parse('challanges.csv', {
header: true,
dynamicTyping: true,
complete: function(results) {
console.log(results);
data = results.data;
}
});
As far as I know, I'm having problems with opening the csv file as File. How can I do it with javascript?
See Question&Answers more detail:os