File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes GWT and the fly likes GWT: Ajax file upload? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "GWT: Ajax file upload?" Watch "GWT: Ajax file upload?" New topic

GWT: Ajax file upload?

Aljaxey Dashkevich

Joined: Jun 22, 2007
Posts: 2

I have seen in GWT upload file widget but it is only wrap HTML tag. But I am interesting about true AJAX widget for file upload which may support resume upload (very useful for large files). And can do upload in background.

Is there are any available in GWT? If you know about plans regarding such widget in GWT?

Below link to example of true AJAX file upload:
Robert Hanson
Ranch Hand

Joined: May 11, 2007
Posts: 34
Hi Aljaxey.

I have a bit of an issue with them calling that project AJAXUpload. I think it would be more appropriate to call it ActiveXUpload.

In any case, you could use the AJAXUpload project from GWT by using the JavaScript Native Interface. GWT allows your Java code to interact with JavaScript, so anything that can be done in JS can be done in GWT.

As for GWT specific projects like this, there are none that I know of.

Robert Hanson
Co-Author GWT in Action
Adam Tacy
Ranch Hand

Joined: Jun 02, 2007
Posts: 37
Hi Aljaxey,

I guess they call it AJAXUpload since it uses the HttpRequest object; but I do agree with Rob, it's not exactly AJAX - and it is limited to ActiveX platforms.

Aljaxey, you're right, the GWT widget is a wrapper to the standard html component - but that is the case (and benefit) for all GWT widgets.

Just thinking out loud without too much constraint - I wonder if you could do the same with a small Java applet and some JSNI to a GWT application. On second thoughts, I could just imagine the security issues you would have to resolve to get it to work......

I agree. Here's the link:
subject: GWT: Ajax file upload?
It's not a secret anymore!