diff --git a/jquery.uploadProgress.js b/jquery.uploadProgress.js index 42f5c0b..d161612 100644 --- a/jquery.uploadProgress.js +++ b/jquery.uploadProgress.js @@ -116,6 +116,11 @@ jQuery.uploadProgress = function(e, options) { // Null/false/empty response, assume we're out of process options.success(upload); } + }, + error: function(upload) { + window.clearTimeout(options.timer); + options.complete(upload); + options.error(upload); } }); };