Skip to content

Instantly share code, notes, and snippets.

@cfjedimaster
Created May 1, 2013 21:24
Show Gist options
  • Select an option

  • Save cfjedimaster/5498492 to your computer and use it in GitHub Desktop.

Select an option

Save cfjedimaster/5498492 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