Friday, October 31, 2014

Re: Upload a file using Drag and Drop on the Browse button in the Browser

Hi Surinaidu!

I can tell you how I do it.

Define a ChangeHandler like this:

ChangeHandler changeHandler = new ChangeHandler()
public void onChange(ChangeEvent event)

In my View I have the FileUpload field called 'uploadField'. I simply attach the ChangeHandler to the FileUpload and whenever anyone chooses a file, or drops a file onto it, it calls the uploadFile() function.


Hope that helps! It works for me in firefox anyway :)


On Thursday, 30 October 2014 11:35:17 UTC, Surinaidu Majji wrote:
Hello All,
We are using file upload from the gwt but i want to upload the file by drag and drop in the browser. It is working fine with chrome browser but not working with Firefox because in Chrome it is showing choose File and Firefox it is showing Browse option. How can i upload the file in the Firefox browser by Drag and drop?

Thanks in advance.

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment