Skip to content

Instantly share code, notes, and snippets.

@dboutote
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dboutote/e60d01f0774d731f870b to your computer and use it in GitHub Desktop.
Save dboutote/e60d01f0774d731f870b to your computer and use it in GitHub Desktop.
'onUploadProgress' : function(file, fileBytesLoaded, fileTotalBytes, queueBytesLoaded, queueDataUploadSize) {
// Triggered periodically during a file upload
var perc = Math.round(fileBytesLoaded / fileTotalBytes * 100);
var progress = ( perc < 99 ) ? 'Uploading ' + perc + '%' : '<i class="fa fa-cog fa-spin"></i> Processing: ' + file.name;
if( perc >= 99 ){
$('.uploadify-queue').fadeOut();
};
$('#progress').html(progress).show();
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment