LoranRendel opened a new issue #456: URL: https://github.com/apache/cordova-plugin-file/issues/456
# Bug Report ## Problem ### What is expected to happen? Successful file read ### What does actually happen? File error 1 ## Information <!-- Include all relevant information that might help understand and reproduce the problem -->  ### Command or Code <!-- What command or code is needed to reproduce the problem? --> ```function readFile(fileEntry) { fileEntry.file(function (file) { console.log(file); var reader = new FileReader(); reader.onloadend = function () { console.log("Successful file read: " + this.result); console.log(this); }; reader.readAsText(file); }, onErrorReadFile); } function onErrorReadFile(e) { console.log('error: ' + e); } window.resolveLocalFileSystemURL(cordova.file.externalRootDirectory + "test.txt", readFile, function (e) { console.log('unable to read', e); } );``` ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> 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 9.0.0, Android 10, cordova-plugin-file 6.0.2 ## 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]
