[
https://issues.apache.org/jira/browse/CB-3221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13642420#comment-13642420
]
Rob Gillan commented on CB-3221:
--------------------------------
So is the problem in the FileWriter then, as in our example it writes a simple
stringified object into the file:
gotFileWriter = function(fileWriter) {
console.log('gotFileWriter');
var obj = {data: 'this is some test data'};
fileWriter.onwriteend = function(event) {
console.log('fileWriter.onwriteend');
console.log(JSON.stringify(obj));
document.getElementById('fwrite').innerHTML = 'write complete';
document.getElementById('fdata').innerHTML = JSON.stringify(obj);
testdb.getFile(keyToGet, {create: false, exclusive: false}, existsTrue,
existsFalse);
};
fileWriter.write(JSON.stringify(obj));
};
so the read should return {data: 'this is some test data'}, and it's returning
a null
> 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