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

Object.prototype.toString.call(file) returns [object Object] instead of [object File]

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-plugin-file
    • Labels:
      None

      Description

      I'm trying to use the File plugin in combination with FineUploader. FineUploader uses the File API and tests if a passed in object is a file using the following call:

      Object.prototype.toString.call(file) === "[object File]"

      But the File retrieved from a FileEntry using entry.file(function(file)

      { ... }

      ); is not seen as a file since the toString.call returns [object Object].

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              abroekhuis Alexander Broekhuis
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: