Skip to content

Commit

Permalink
Added notify support to the uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
asafdav committed Feb 4, 2014
1 parent 0559dc9 commit 4137633
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions build/ng-s3upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ angular.module('ngS3upload.services', []).
} else {
scope.progress = 'unable to compute';
}
if (typeof deferred.notify === 'function') {
deferred.notify({type: 'progress', value: scope.progress});
}
});
}
function uploadComplete(e) {
Expand Down
4 changes: 2 additions & 2 deletions build/ng-s3upload.min.js

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

3 changes: 3 additions & 0 deletions src/ng-s3upload/services/s3-uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ angular.module('ngS3upload.services', []).
} else {
scope.progress = 'unable to compute';
}
if (typeof deferred.notify === 'function') {
deferred.notify({type: 'progress', value: scope.progress});
}
});
}
function uploadComplete(e) {
Expand Down

0 comments on commit 4137633

Please sign in to comment.