commit | 570bca0e06adbbd161d45b13306beefe732ee57d | [log] [tgz] |
---|---|---|
author | Jesse MacFadyen <purplecabbage@gmail.com> | Tue Jul 11 16:01:53 2017 -0700 |
committer | Jesse MacFadyen <purplecabbage@gmail.com> | Tue Jul 11 16:01:53 2017 -0700 |
tree | 2479b79452be397428fac8adce689e9a29be279b | |
parent | 5513bf302f691bdc1191a3c1f796e5a40580e4f1 [diff] | |
parent | a7d3c876506a0d694294c97e16d9e6b10b160c7a [diff] |
Merge branch 'master' of https://github.com/bozdoz/cordova-plugin-file-transfer
diff --git a/www/browser/FileTransfer.js b/www/browser/FileTransfer.js index 14868ac..1cc6638 100644 --- a/www/browser/FileTransfer.js +++ b/www/browser/FileTransfer.js
@@ -161,7 +161,9 @@ } xhr.onload = function() { - if (this.status === 200) { + // 2xx codes are valid + if (this.status >= 200 && + this.status < 300) { var result = new FileUploadResult(); // jshint ignore:line result.bytesSent = blob.size; result.responseCode = this.status;