Last active
August 29, 2015 14:07
-
-
Save dboutote/e60d01f0774d731f870b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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