You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "David Gonzalez (JIRA)" <ji...@apache.org> on 2017/11/14 17:20:00 UTC

[jira] [Created] (CB-13572) resolveLocalFileSystemURL in camera.getPicture not works

David Gonzalez created CB-13572:
-----------------------------------

             Summary: resolveLocalFileSystemURL in camera.getPicture not works
                 Key: CB-13572
                 URL: https://issues.apache.org/jira/browse/CB-13572
             Project: Apache Cordova
          Issue Type: Bug
          Components: cordova-plugin-camera
            Reporter: David Gonzalez
            Priority: Critical



{code:javascript}
var options = {
            destinationType: Camera.DestinationType.FILE_URI,
            sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
            mediaType: Camera.MediaType.PICTURE
        };

        function cameraSuccess(imageUri){
            
            console.log(imageUri);
            window.resolveLocalFileSystemURL(imageUri,
            function(entry){
                alert('s');
                console.log("yes");
                console.log(entry);
                console.log(JSON.stringify(entry));

            },
            function(error){
                alert('n');
                console.log("error");
                console.log(JSON.stringify(error));
            });
        }

        function cameraError(error){
            console.log("nnn");
            console.log(error);
            
        }

        navigator.camera.getPicture(cameraSuccess, cameraError, options);{code}




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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