Permalink
Browse files

logging to console the percantage of the upload for testing purposes

  • Loading branch information...
yortz committed Oct 27, 2011
1 parent d5c0e90 commit 1dedc747ea5130c6641f33e7a6fa3a627e9fba1a
Showing with 6 additions and 0 deletions.
  1. +6 −0 app/assets/javascripts/pictures/form.js
@@ -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.