Lorenzo Aquino
Lorenzo Aquino

Reputation: 43

Uploading Files in GWT without GAE and Apache Commons

I would just like to ask if there is a way to upload files in GWT WITHOUT using the Google App Engine and Apache Commons archives? I've been searching for ways to upload files in GWT but all of the solutions I find all make use of these two. I would just like to know if there is a way, because our app won't work if we use GAE and Apache Commons... Thank you very much!

Upvotes: 0

Views: 398

Answers (2)

mabn
mabn

Reputation: 2523

GWT does not have such feature. You need to use some existing library or handle multipart form submits by yourself (FileUpload class). There is for example a gwtupload library which I have used and it worked pretty fine (but it is based on commons-upload AFAIR). There are other libs for sure.

http://code.google.com/p/gwtupload/

Upvotes: 0

Peter Knego
Peter Knego

Reputation: 80340

Yes, the simplest would be (assuming you are saving files to Blobstore):

  1. On GWT side use FileUpload. Here is an example on how to use it.

  2. On GAE side use BlobStore upload handler.

The other option would be to use gwt-upload with GAE upload handler.

Upvotes: 1

Related Questions