Skip to content

Instantly share code, notes, and snippets.

@devbyray
Created September 15, 2022 07:43
Show Gist options
  • Save devbyray/fe5be69673eb11c51f06b3dc632f144f to your computer and use it in GitHub Desktop.
Save devbyray/fe5be69673eb11c51f06b3dc632f144f to your computer and use it in GitHub Desktop.
const file = csvFileInput.files[0];
const reader = new FileReader();
reader.onload = function (e) {
// Access to content with e.target.result
console.log("content: ", e.target.result);
};
reader.readAsText(file);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment