cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Broekhuis (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-12515) Object.prototype.toString.call(file) returns [object Object] instead of [object File]
Date Wed, 01 Mar 2017 07:08:45 GMT

    [ https://issues.apache.org/jira/browse/CB-12515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15889655#comment-15889655
] 

Alexander Broekhuis edited comment on CB-12515 at 3/1/17 7:08 AM:
------------------------------------------------------------------

Installed platforms:
  android 5.2.2
  ios 4.2.1
Available platforms: 
  amazon-fireos ~3.6.3 (deprecated)
  blackberry10 ~3.8.0
  browser ~4.1.0
  firefoxos ~3.6.3
  osx ~4.0.1
  webos ~3.7.0

com.mbientlab.metawear 0.2.15 "
    MetaWear
  "
com.testfairy.cordova-plugin 2.1.1 "TestFairy Plugin"
cordova-plugin-app-preferences 0.99.3 "AppPreferences"
cordova-plugin-bluetooth-status 1.0.4 "Bluetooth status"
cordova-plugin-bluetoothle 4.3.0 "Bluetooth LE"
cordova-plugin-camera 2.3.1 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-file 4.3.1 "File"
cordova-plugin-file-transfer 1.6.1 "File Transfer"
cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
cordova-plugin-splashscreen 4.0.1 "Splashscreen"
cordova-plugin-statusbar 2.2.1 "StatusBar"
cordova-plugin-whitelist 1.3.1 "Whitelist"
ionic-plugin-deeplinks 1.0.14 "Ionic Deeplink Plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"



was (Author: abroekhuis):
Installed platforms:
  android 5.2.2
  ios 4.2.1
Available platforms: 
  amazon-fireos ~3.6.3 (deprecated)
  blackberry10 ~3.8.0
  browser ~4.1.0
  firefoxos ~3.6.3
  osx ~4.0.1
  webos ~3.7.0


> Object.prototype.toString.call(file) returns [object Object] instead of [object File]
> -------------------------------------------------------------------------------------
>
>                 Key: CB-12515
>                 URL: https://issues.apache.org/jira/browse/CB-12515
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin File
>            Reporter: Alexander Broekhuis
>
> 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].



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message