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 @@ FileTransfer.prototype.upload = function(filePath, server, successCallback, erro } 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;