mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-10 00:00:03 +08:00
Merge branch 'master' of https://github.com/bozdoz/cordova-plugin-file-transfer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user