Hi Surinaidu!
On Thursday, 30 October 2014 11:35:17 UTC, Surinaidu Majji wrote:
-- I can tell you how I do it.
Define a ChangeHandler like this:
ChangeHandler changeHandler = new ChangeHandler()
{
@Override
public void onChange(ChangeEvent event)
{
uploadFile();
}
};
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.
uploadField.addChangeHandler(changeHandler);
Hope that helps! It works for me in firefox anyway :)
Drew
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 google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment