I can't find a single bit of information about how to do this, so I'm resorting to asking a question here.
How do I actually load a local file and parse it using PapaParse?
I currently have:
$(function() {
Papa.parse(new File("text.csv"), {
complete: function(results)
console.log("Finished:", results.data);
}
});
});
...but I have decided the constructor must be intended for creating new files. How am I supposed to do this? PapaParse's website shows this:
Papa.parse(file, {
complete: function(results) {
console.log("Finished:", results.data);
}
});
...buuut that doesn't explain where file
came from.