开发者

Best way to implement drag and drop upload Google Gears or HTML 5

开发者 https://www.devze.com 2023-01-17 21:22 出处:网络
What would you recommend for supporting drag and drop upload - that is being able to drag a file icon from the desktop onto some \"zone\" on a web page and have it uploaded to the server. THe options

What would you recommend for supporting drag and drop upload - that is being able to drag a file icon from the desktop onto some "zone" on a web page and have it uploaded to the server. THe options are Google Gears,HTML 5 or anything else you can recommend. The criteria are:

  • should work on as many browsers as possible
  • should work into the future if possible (although this is less important as I can change the implementat开发者_开发百科ion if things change
  • the less effort required the better (in particular the less extra work required for each browser the better).
  • the less work the user has to do (i.e. download plugins, update browser version) the better


    You might want to look at Plupload. It uses various plugins, gears, html5, flash, etc, to do the job for you. Drag and drop might be bit of problem for IE 7 and below.

    http://www.plupload.com/documentation.php


    HTML 5 drag and drop probably has the widest acceptance. But the main to keep in mind is that Google Gears is no longer supported and has no been dropped from Chrome in version 12 ( the current version )

  • 0

    精彩评论

    暂无评论...
    验证码 换一张
    取 消