Skip to content

Commit

Permalink
fixed progress end for ie8
Browse files Browse the repository at this point in the history
  • Loading branch information
danialfarid committed Feb 19, 2014
1 parent abd4819 commit a4e498b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dist/angular-file-upload-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if (window.XMLHttpRequest) {
var config = {
url: xhr.__url,
complete: function(err, fileApiXHR) {
xhr.__load({type: 'load', loaded: xhr.__total, total: xhr.__total, target: xhr, lengthComputable: true});
if (!err) xhr.__load({type: 'load', loaded: xhr.__total, total: xhr.__total, target: xhr, lengthComputable: true});
if (fileApiXHR.status !== undefined) Object.defineProperty(xhr, 'status', {get: function() {return fileApiXHR.status}});
if (fileApiXHR.statusText !== undefined) Object.defineProperty(xhr, 'statusText', {get: function() {return fileApiXHR.statusText}});
Object.defineProperty(xhr, 'readyState', {get: function() {return 4}});
Expand Down Expand Up @@ -229,7 +229,6 @@ if (!window.FormData) {
}

if (FileAPI.staticPath == null) FileAPI.staticPath = basePath;
FileAPI.debug = true;
script.setAttribute('src', jsUrl || basePath + "FileAPI.min.js");
document.getElementsByTagName('head')[0].appendChild(script);
}
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-file-upload-shim.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a4e498b

Please sign in to comment.