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

Rob Gillan commented on CB-3221:
--------------------------------

Shazron,

Have confirmed it's now working.  We do note that the returned event to the 
onloadend handler is structured differently than shown in the current API 
documentation.  The stringified event looks like:

{"type":"loadend","bubbles":false,"cancelBubble":false,"cancelable":false,"lengthComputable":false,"loaded":0,"total":0,"target":{"_readyState":2,"_error":null,"_result":"{\"data\":\"this
 is some test data\"}","_fileName":"/Users/rob/Library/Application 
Support/iPhone 
Simulator/6.1/Applications/F10B991B-C530-4977-83A1-CE489C800F73/Documents/testdb/testfile.json","_realReader":{"readyState":0,"result":"","onabort":null,"error":null}}}

which has the result in event.target._result, not in event.target._result as 
shown in the documentation.

Thanks for all your help in getting to the bottom of this.

Cheers
Rob
                
> FileReader not working on Cordova 2.6.0 or greater
> --------------------------------------------------
>
>                 Key: CB-3221
>                 URL: https://issues.apache.org/jira/browse/CB-3221
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: Master, 2.6.0
>         Environment: iOS 6.1.3/Xcode 4.6.2
>            Reporter: Rob Gillan
>            Assignee: Shazron Abdullah
>             Fix For: 2.7.0
>
>         Attachments: index.html
>
>
> In upgrading from production 2.5 to 2.6 we have found that the FileReader 
> events do not fire beyond onloadstart. Thus reading files do not work as 
> there is no onloadend or returned information.  Noticed first on an iPad3 but 
> then verified under XCode simulator.

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