This commit is contained in:
Jesse MacFadyen
2017-07-11 16:01:53 -07:00

View File

@@ -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;