code: function (error, res) {
              task.uploadError = 'error';
              for (var i = task.uploadingAjax.length - 1; i >= 0; i--) {
                  var ajax = task.uploadingAjax[i];
                  ajax && ajax.abort();
              }
              task.onTaskProgress(true);
              defer.reject(res);
          }
docs: 出错的时候，结束所有上传，发起回调