You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/01/24 08:49:59 UTC

[GitHub] sohrabtaee commented on issue #404: DestinationType.NATIVE_URI returns content URI on Android.

sohrabtaee commented on issue #404: DestinationType.NATIVE_URI returns content URI on Android.
URL: https://github.com/apache/cordova-plugin-camera/issues/404#issuecomment-457115458
 
 
   ```html
   <plugin name="cordova-plugin-camera" spec="^4.0.2" />
   <engine name="android" spec="^7.0.0" />
   ```
   
   
   ```javascript
         _chooseFromGallery() {
             navigator.camera.getPicture(
               this. _addPhoto.bind(this),
               this._onError, {
                 sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
                 destinationType: Camera.DestinationType.NATIVE_URL,
                 encodingType: Camera.EncodingType.JPEG,
               });
           }
   ```
   
   And this is the console output:
   `Not allowed to load local resource: content://com.android.providers.media.documents/document/image%3A6717`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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