Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drag and Drop file upload with GWT

Tags:

java

gwt

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.

like image 870
quarks Avatar asked Oct 20 '22 21:10

quarks


1 Answers

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.

like image 159
airtech Avatar answered Oct 24 '22 13:10

airtech