[ 
https://issues.apache.org/jira/browse/CB-3409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13660822#comment-13660822
 ] 

Andrew Grieve commented on CB-3409:
-----------------------------------

Ah, I see. Yeah - there is some deprecated code that should make this work. It 
think it's been in a deprecated state for long enough that the fix is to delete 
it rather than to fix it though.


                
> FileReader.readAsText error: e.target.error.code = "JSON error"
> ---------------------------------------------------------------
>
>                 Key: CB-3409
>                 URL: https://issues.apache.org/jira/browse/CB-3409
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 2.7.0
>            Reporter: Flavio Spezi
>            Assignee: Joe Bowser
>              Labels: patch
>
> This is an example code:
> {code:javascript}
> function readMyFile() {
>     var filename = "testFile.txt";
>     var objFile = new FileReader();
>     objFile.onloadend = function(e) {
>         console.log("Result: " + JSON.stringify(e));
>     }
>    objFile.readAsText(filename);
> }
> {code}
> Collback function returns error:
> e.target.error.code = "JSON error"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to