[ 
https://issues.apache.org/jira/browse/CB-9110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Richard B Knoll updated CB-9110:
--------------------------------
    Description: 
I'm using a Samsung Galaxy S6 (Android 5) for testing.  fileEntry.file failing 
only when using "Internal Storage" to select an image.  If I use the "Gallery" 
or "Images", it works correctly.  

Please see below for code snippet.

Thanks
{code:javascript}
navigator.camera.getPicture(
    function (imageURI) {
        window.resolveLocalFileSystemURL(
            imageURI,
            function (fileEntry) {

                //THIS LINE IS WHERE IT'S FAILING BUT ONLY WHEN USING THE 
"INTERNAL STORAGE" OPTION FOR SELECTING A FILE
                fileEntry.file(function (myFile) {
                    console.log("SUCCESS");
                },
                function (error) {
                    console.log("FAIL");
                });
            },
            function () { });
    },
    function () { },
    {
        quality: 50,
        destinationType: navigator.camera.DestinationType.FILE_URI,
        sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
    });
{code}


  was:
I'm using a Samsung Galaxy S6 (Android 5) for testing.  fileEntry.file failing 
only when using "Internal Storage" to select an image.  If I use the "Gallery" 
or "Images", it works correctly.  

Please see below for code snippet.

Thanks

navigator.camera.getPicture(
    function (imageURI) {
        window.resolveLocalFileSystemURL(
            imageURI,
            function (fileEntry) {

                //THIS LINE IS WHERE IT'S FAILING BUT ONLY WHEN USING THE 
"INTERNAL STORAGE" OPTION FOR SELECTING A FILE
                fileEntry.file(function (myFile) {
                    console.log("SUCCESS");
                },
                function (error) {
                    console.log("FAIL");
                });
            },
            function () { });
    },
    function () { },
    {
        quality: 50,
        destinationType: navigator.camera.DestinationType.FILE_URI,
        sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
    });



> Android 5 Using Internal Storage - Cordova File Plugin
> ------------------------------------------------------
>
>                 Key: CB-9110
>                 URL: https://issues.apache.org/jira/browse/CB-9110
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Camera, Plugin File
>    Affects Versions: 3.5.0
>         Environment: Android
>            Reporter: Dan Cornish
>              Labels: Android
>         Attachments: TestCordovaApp.zip
>
>
> I'm using a Samsung Galaxy S6 (Android 5) for testing.  fileEntry.file 
> failing only when using "Internal Storage" to select an image.  If I use the 
> "Gallery" or "Images", it works correctly.  
> Please see below for code snippet.
> Thanks
> {code:javascript}
> navigator.camera.getPicture(
>     function (imageURI) {
>         window.resolveLocalFileSystemURL(
>             imageURI,
>             function (fileEntry) {
>                 //THIS LINE IS WHERE IT'S FAILING BUT ONLY WHEN USING THE 
> "INTERNAL STORAGE" OPTION FOR SELECTING A FILE
>                 fileEntry.file(function (myFile) {
>                     console.log("SUCCESS");
>                 },
>                 function (error) {
>                     console.log("FAIL");
>                 });
>             },
>             function () { });
>     },
>     function () { },
>     {
>         quality: 50,
>         destinationType: navigator.camera.DestinationType.FILE_URI,
>         sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
>     });
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to