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  ### 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
