Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6330

FileReader ALWAYS returns TypeMisMatch Error on Windows Phone 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.0, 2.9.0
    • None
    • cordova-plugin-file
    • Windows Phone 8

    Description

      FileReader.readAsText() ALWAYS returns a TypeMisMatchError.
      None of the event listeners for the FileReader are ever fired (Even the onerror event is NEVER fired).
      However, if you place the FileReader.readAsText() method in a try/catch block, it will ALWAYS return a TypeMisMatchError.

      e.g.
      try
      {
      fileReader.readAsText(file);
      }
      catch(error)
      {
      console.log(error.message);
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            writeosahon Osahon Okungbowa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: