ishtiaqshariffTopdevz opened a new issue #720:
URL: https://github.com/apache/cordova-plugin-camera/issues/720
# Bug Report
Android 10 and Android 11 cache file not found permission denied. Like once
image is taken which will save in External Storage of the device but the when
it tries to pull the image for further process it showing permission denied
exception.
## Problem
### What is expected to happen?
### What does actually happen?
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
{
quality: 20,
destinationType: Camera.DestinationType.FILE_URI,
sourceType: Camera.PictureSourceType.CAMERA,
allowEdit: false,
encodingType: Camera.EncodingType.JPEG,
correctOrientation: true,
saveToPhotoAlbum: false
}
### Command or Code
window.resolveLocalFileSystemURL(imageURI, resolveOnSuccess,
moveFileError);
resolveOnSuccess (entry) {
var url = '';
var d = new Date();
var n = d.getTime();
//new file name
var newFileName = n + ".jpg";
var myFolderApp = "plugin_images";
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSys) {
fileSys.root.getDirectory(myFolderApp,
{ create: true },
function (directory) {
entry.moveTo(directory, newFileName,
function (new_entry) {
}
},moveFileError);
},
moveFileError);
},
moveFileError);
}
function moveFileError(error) {
console.log('Error '+error.code+': '+error.message);
}
### Environment, Platform, Device
Android 10 and Android 11
### Version information
cordova-plugin-camera 5.0.2-dev "Camera"
8.1.2 ([email protected])
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ ] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [ ] 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]