Skip to content

Instantly share code, notes, and snippets.

@mmacedo
Forked from inossidabile/gist:1582000
Created April 24, 2012 01:51
Show Gist options
  • Save mmacedo/2475470 to your computer and use it in GitHub Desktop.
Save mmacedo/2475470 to your computer and use it in GitHub Desktop.
JQuery ajax upload.onprogress binding
$.ajax
# ...
beforeSend: (xhr) =>
if xhr.upload?
xhr.upload.onprogress = =>
console.log arguments...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment