promise-file-reader
promise-file-reader copied to clipboard
bug: fileReader.readAsText(file, encoding), encoding argument lost!
promise-file-reader.js: source code:
function readAsText (file) {
return readAs(file, 'Text')
}
Syntax: instanceOfFileReader.readAsText(blob[, encoding]); your code will makes a bug: passed encoding param will lost!
reference: https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText
Thanks for reporting. PRs welcome if you want to fix, otherwise I'll look at it sometime.