Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Sending messages to a PHP server script so you can have the server tell you how many bytes were sent?

Psst.. XMLHttpRequestUpload

† It's the downloading with Ajax that is the problem. There's no way to tell how big the file is.



Psst..

  var xhr = $.ajax({ type: "HEAD", ...
  xhr.getResponseHeader('Content-Length')
I wound up using Silverlight. Sigh.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: