You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/12/09 14:02:32 UTC

[GitHub] [cordova-plugin-camera] indraraj26 opened a new issue #695: [Android] content:// to file://storage does not get resolve

indraraj26 opened a new issue #695:
URL: https://github.com/apache/cordova-plugin-camera/issues/695


   # Bug Report
   
   ## Problem
   When you take pdf anyother file from download you get URI with content://. So in order to resolve i use this package to get file URI path https://www.npmjs.com/package/cordova-plugin-filepath
   
   ### What is expected to happen?
   It should resolve and return file detail
   
   
   ### What does actually happen?
   It returns error code: 1 // not found 
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   chrome://inspect
   ![image](https://user-images.githubusercontent.com/23274631/101600543-779c5d00-3a21-11eb-8f2f-f4ac4667cacf.png)
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   ```
   const options: CameraOptions = {
             quality: 50,
             destinationType: this._camera.DestinationType.FILE_URI,
             mediaType: this._camera.MediaType.ALLMEDIA,
             sourceType: this._camera.PictureSourceType.SAVEDPHOTOALBUM,
             saveToPhotoAlbum: false,
           };
   ```
   ```
    if (file.indexOf("content://") > -1) {
             console.log("content //", file);
             window.FilePath.resolveNativePath(file, (success) => {
               console.log(success, "content");
               window.resolveLocalFileSystemURL(success, (fileEntry) => {
                 console.log(fileEntry, "fileEntry");
                 fileEntry.file((finalFile) => {
                   console.log(finalFile, "resolve");
                   resolve(finalFile);
                 });
               });
             });
           }
   ```
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   All Android version i think so btw currently i am testing on Android 10 
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Cordova CLI       : 10.0.0
   Cordova Platforms : android 9.0.0
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [X] I searched for existing GitHub issues
   - [X] I updated all Cordova tooling to most recent version
   - [X] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



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


[GitHub] [cordova-plugin-camera] breautek commented on issue #695: [Android] content:// to file://storage does not get resolve

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #695:
URL: https://github.com/apache/cordova-plugin-camera/issues/695#issuecomment-742938492


   Just one bug ticket is enough. If this is a bug, it sounds like a `cordova-plugin-file` bug so I'll keep https://github.com/apache/cordova-plugin-file/issues/443 open and close this one.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



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


[GitHub] [cordova-plugin-camera] breautek closed issue #695: [Android] content:// to file://storage does not get resolve

Posted by GitBox <gi...@apache.org>.
breautek closed issue #695:
URL: https://github.com/apache/cordova-plugin-camera/issues/695


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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



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