Skip to content

Commit

Permalink
Fixed maFileField
Browse files Browse the repository at this point in the history
  • Loading branch information
SebLours committed May 2, 2016
1 parent 7db8d13 commit d518236
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/javascripts/ng-admin/Crud/field/maFileField.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export default function maFileField(Upload) {
Upload
.upload(uploadParams)
.progress(function(evt) {
scope.files[evt.config.file.name].progress = Math.min(100, parseInt(100.0 * evt.loaded / evt.total));
scope.files[evt.config.file.name] = {
progress: Math.min(100, parseInt(100.0 * evt.loaded / evt.total))
};
})
.success(function(data, status, headers, config) {
scope.files[config.file.name] = {
Expand Down

0 comments on commit d518236

Please sign in to comment.