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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • None
    • None
    • cordova-plugin-file
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: