You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/01/17 10:39:26 UTC

[jira] [Commented] (CB-12355) Get a null type when using fileEntry.file(function(file) {})

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

ASF GitHub Bot commented on CB-12355:
-------------------------------------

GitHub user LightZam opened a pull request:

    https://github.com/apache/cordova-plugin-file/pull/199

    CB-12355: (iOS) fix FileEntry.file.type

    ### Platforms affected
    iOS
    
    ### What does this PR do?
    fix iOS FileEntry.file callback return a null type
    
    ### What testing has been done on this change?
    install to project and install on real device (iPhone 5, 6, 6s) and simulator
    
    ### Checklist
    - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database
    - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
    - [x] Added automated test coverage as appropriate for this change.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/LightZam/cordova-plugin-file master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-file/pull/199.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #199
    
----
commit 667ddfa40a4056c40624ba8d5bdac7c8a28ec98c
Author: Zam <lo...@gmail.com>
Date:   2017-01-17T10:35:25Z

    CB-12355: (iOS) fix FileEntry.file.type

----


> Get a null type when using fileEntry.file(function(file) {})
> ------------------------------------------------------------
>
>                 Key: CB-12355
>                 URL: https://issues.apache.org/jira/browse/CB-12355
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin File
>    Affects Versions: 6.2.0
>            Reporter: LightZam
>            Assignee: LightZam
>
> resolveLocalFileSystemURL(path, function(fileEntry) {
>     fileEntry.file(function(file) {
>                     console.log(file.name, file.type);
>                 });
>             }, reject);
> The type will be null in iOS because it wasn't implemented.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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