I'm lookin开发者_开发百科g to make a file uploader with a progress bar in HTML5. I've tried using a number of tutorials found elsewhere including on SO. This SO answer (the accepted one) seems to get the closest to what I want but I can't work out the PHP end, also both the $_FILES
and $_POST
arrays appear to be empty.
Before people start saying it's not possible with hidden iframes etc... It should be possible with HTML5.
jQuery is available if required, but my impression is that jQuery does not currently support a lot of HTML5 functionality.
Update:
I'm only worrying about Chrome right now.
I think this might work for you http://aquantum-demo.appspot.com/file-upload
I think the best project I have seen to handle file uploads is from the makers of TinyMCE, Moxiecode with Plupload. It will work with HTML5, but also falls back to Browser Plus, Gears, Flash or Silverlight. It is GPLv2 licenced.
You can see some of their examples here: http://www.plupload.com/example_queuewidget.php
精彩评论