You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Alexander Broekhuis (JIRA)" <ji...@apache.org> on 2017/02/28 08:15:45 UTC
[jira] [Updated] (CB-12515) Object.prototype.toString.call(file)
returns [object Object] instead of [object File]
[ https://issues.apache.org/jira/browse/CB-12515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Broekhuis updated CB-12515:
-------------------------------------
Summary: Object.prototype.toString.call(file) returns [object Object] instead of [object File] (was: Object.prototype.toString.call(file) return [object Object] instead of [object File])
> 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