Am I correct in understanding that it's impossible for the UI (i.e. through JavaScript alone) to know the progress of an upload as it's being POSTed, without using Flash or HTML5's XMLHttpRequest Level 2 specification?
-
I'll leave it open to somebody who can provide information and details with their Answer. :)jrn.ak– jrn.ak2011-04-07 18:13:54 +00:00Commented Apr 7, 2011 at 18:13
-
I don't see the question. You're correct. And...?Zirak– Zirak2011-04-07 18:37:30 +00:00Commented Apr 7, 2011 at 18:37
Add a comment
|
2 Answers
Yes, you are correct. For information about using HTML5 to monitor progress, see:
- http://www.matlus.com/html5-file-upload-with-progress/
- http://dev.w3.org/2006/webapi/XMLHttpRequest-2/#xmlhttprequestupload
For information about using Flash, see:
- SWFUploader @ http://swfupload.org/project (popular solution)
- jQuery "Uploadify" plugin using SWFUploader: http://www.uploadify.com
- Other options: http://www.google.com/#sclient=psy&hl=en&q=flash+file+uploader&aq=f&aqi=g4g-m1&aql=&oq=&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=ae3fa2fab1e0dd34
Comments
There are alternatives, but they're obviously not as precise: poll the server (in a parallel request) for upload progress. JsUpload does this, for instance: http://code.google.com/p/gwtupload/#How_does_it_work.
Oh, and of course, there's also Gears, Silverlight and BrowserPlus, as alternatives to Flash. See http://www.plupload.com