Drag and Drop file upload with GWT

南笙酒味 提交于 2020-01-14 09:31:47

问题


I'm trying to implement a drag-and-drop file upload for my GWT app. I've tried

http://www.vectomatic.org/gwt/lib-gwt-file-test-latest/lib-gwt-file-test.html http://map-notes.blogspot.com/2013/01/minimal-implementation-of-file-drag-and.html

However the demo itself does not work. What are my options for implementing this for my app without using any Flash solution.


回答1:


I use the GWT Uplader -

http://www.moxiegroup.com/moxieapps/gwt-uploader/

If the browser is capable of handling file uploads using a modern HTML5 approach, the upload is handled using pure DOM elements and Javascript events. In the case that the browser does not support the modern approach (most notably IE 9 and earlier), the GWT Uploader component instead transparently handles the uploads via the Flash-based SWFUpload library.

I have no problems with it, and it doesn't appear to use flash with any modern browser due the HTML5 support. Didn't take me to long to get it added myself and integrated as they have pretty good documentation.



来源:https://stackoverflow.com/questions/19753758/drag-and-drop-file-upload-with-gwt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!