Navigation Menu

Skip to content

Commit

Permalink
logging to console the percantage of the upload for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
yortz committed Oct 27, 2011
1 parent d5c0e90 commit 1dedc74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/assets/javascripts/pictures/form.js
Expand Up @@ -68,5 +68,11 @@ $(function () {
});

});

$('#fileupload').bind('fileuploadprogressall', function (e,data) {
var progress = parseInt(data.loaded / data.total * 100, 10);
//$('.progress-bar').find('div').css('width', progress + '%').find('span').html(progress + '%');
console.info(progress);
});

});

0 comments on commit 1dedc74

Please sign in to comment.