willPHPwork opened a new issue, #603:
URL: https://github.com/apache/cordova-plugin-file/issues/603
# Bug Report
## Problem
Unable to write files to download folder. Receiving error code 2 but I have
accept permissions. (READ_MEDIA_IMAGES). Was working in Android 12 with
WRITE_EXTERNAL_STORAGE.
### What is expected to happen?
Save image to download folder
### What does actually happen?
Creates empty file no contents. Tried with base64 and blob.
## Information
```
permissions.checkPermission(permissions.READ_MEDIA_IMAGES, function( status
){
if(!status.hasPermission)
{
// Ask for permission
permissions.requestPermission(permissions.READ_MEDIA_IMAGES, function() {
//
}, function() {
//
});
}
}, function() {
//
});
```
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
```
fileEntry.createWriter(function (fileWriter) {
fileWriter.onwriteend = function () {
// success
}
fileWriter.onerror = function (error) {
// error
}
fileWriter.write(blob); // or base64
})
```
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
Android 13 SDK 33
### Version information
## Checklist
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]