How can I read a local file with Papa Parse?
问题 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? 回答1: The File API suggested by papaparse's docs is meant for browser used. Assuming that