When you use Drupal imagefield or filefield module, you'll have noticed that it uses uploadprogress to show a nifty progress bar