Github user jasongin commented on a diff in the pull request:
https://github.com/apache/cordova-plugin-file/pull/177#discussion_r58919879
--- Diff: www/FileWriter.js ---
@@ -107,8 +108,29 @@ FileWriter.prototype.write = function(data) {
var fileReader = new FileReader();
fileReader.onload = function() {
// Call this method again, with the arraybuffer as argument
- FileWriter.prototype.write.call(that, this.result);
+ FileWriter.prototype.write.call(that, this.result, true /*
isPendingBlobReadResult */);
};
+ fileReader.onerror = function (evt) {
+ // DONE state
+ that.readyState = FileWriter.DONE;
--- End diff --
Do you need to check if this FileWriter is already in the DONE (cancelled)
state, as in the other callbacks below?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]