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/07/23 20:48:52 UTC

[GitHub] [cordova-android] maxymczech opened a new issue #1034: After upgrading to cordova-android@9.0.0, FileReader.readAsArrayBuffer stopped working

maxymczech opened a new issue #1034:
URL: https://github.com/apache/cordova-android/issues/1034


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   I expect this code to read my file, it worked fine in `cordova-android@8.1.0`:
   
   ```
   const reader = new FileReader();
   reader.onloadend = function() {
     ...
   }
   reader.readAsArrayBuffer(file);
   ```
   
   ### What does actually happen?
   
   Read fails with `ERROR_CODE: 1`
   
   ## Information
   I run application on Samsung A90, running Android 10
   
   
   ### Command or Code
   ```
   const reader = new FileReader();
   reader.onloadend = function() {
     ...
   }
   reader.readAsArrayBuffer(file);
   ```
   
   
   ### Environment, Platform, Device
   I run application on Samsung A90, running Android 10
   
   
   
   ### Version information
   `cordova-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-android] maxymczech commented on issue #1034: After upgrading to cordova-android@9.0.0, FileReader.readAsArrayBuffer stopped working

Posted by GitBox <gi...@apache.org>.
maxymczech commented on issue #1034:
URL: https://github.com/apache/cordova-android/issues/1034#issuecomment-666419574


   I think starts with `cdvfile://localhost/persistent/`


----------------------------------------------------------------
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-android] jcesarmobile commented on issue #1034: After upgrading to cordova-android@9.0.0, FileReader.readAsArrayBuffer stopped working

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #1034:
URL: https://github.com/apache/cordova-android/issues/1034#issuecomment-666424687


   I was expecting a file:// url, not a cdvfile:// url. Can you share your code?


----------------------------------------------------------------
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-android] jcesarmobile commented on issue #1034: After upgrading to cordova-android@9.0.0, FileReader.readAsArrayBuffer stopped working

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #1034:
URL: https://github.com/apache/cordova-android/issues/1034#issuecomment-664951675


   how does the file path looks like?
   
   On Android 10 there are certain paths that are no longer accessible, but only happens if the app targets SDK 29, which cordova-android 9 does, so that could be the issue.


----------------------------------------------------------------
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