O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix D. Jakarta Commons-FileUpload

FileUpload is an aptly named library that makes it easy to add file upload capability to a Java web application. By using its clear API, a user can send files to a web server for easy processing by simply making a selection from a web form. A file upload request comprises of an ordered list of items that are encoded according to RFC 1867 - "Form-based File Upload in HTML".

FileUpload can parse such a request and provide your application with a list of the individual uploaded items. Each such item implements the FileItem interface, regardless of its underlying implementation.

Using FileUpload creates new file items using a FileItemFactory. This is what gives FileUpload most of its flexibility. The factory ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required