Skip to content

Instantly share code, notes, and snippets.

@fhferreira
Forked from cfjedimaster/gist:5498492
Created January 21, 2014 12:51
Show Gist options
  • Save fhferreira/8539440 to your computer and use it in GitHub Desktop.
Save fhferreira/8539440 to your computer and use it in GitHub Desktop.
fileTransfer.onprogress = function(progressEvent) {
if (progressEvent.lengthComputable) {
loadingStatus.setPercentage(progressEvent.loaded / progressEvent.total);
} else {
loadingStatus.increment();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment