Skip to content

Commit a4e498b

Browse files
committed
fixed progress end for ie8
1 parent abd4819 commit a4e498b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dist/angular-file-upload-shim.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if (window.XMLHttpRequest) {
9090
var config = {
9191
url: xhr.__url,
9292
complete: function(err, fileApiXHR) {
93-
xhr.__load({type: 'load', loaded: xhr.__total, total: xhr.__total, target: xhr, lengthComputable: true});
93+
if (!err) xhr.__load({type: 'load', loaded: xhr.__total, total: xhr.__total, target: xhr, lengthComputable: true});
9494
if (fileApiXHR.status !== undefined) Object.defineProperty(xhr, 'status', {get: function() {return fileApiXHR.status}});
9595
if (fileApiXHR.statusText !== undefined) Object.defineProperty(xhr, 'statusText', {get: function() {return fileApiXHR.statusText}});
9696
Object.defineProperty(xhr, 'readyState', {get: function() {return 4}});
@@ -229,7 +229,6 @@ if (!window.FormData) {
229229
}
230230

231231
if (FileAPI.staticPath == null) FileAPI.staticPath = basePath;
232-
FileAPI.debug = true;
233232
script.setAttribute('src', jsUrl || basePath + "FileAPI.min.js");
234233
document.getElementsByTagName('head')[0].appendChild(script);
235234
}

dist/angular-file-upload-shim.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)