Github user daserge commented on a diff in the pull request: https://github.com/apache/cordova-plugin-file/pull/177#discussion_r58983822 --- 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 -- I don't think so as the `DONE` state is being set in `FileReader.readSuccessCallback`, `FileReader.readFailureCallback` and `FileReader.abort` only. `abort` should not be called outside (and we don't call it) taking into account that fileReader is an internal variable, `readSuccessCallback` calls `onload` and `readFailureCallback` calls `onerror` so we are covering all the cases.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org