Skip to content

bug: fileReader.readAsText(file, encoding), encoding argument lost! #12

@En777

Description

@En777

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions