File Upload

Waffle provides support for uploading files, using Commons FileUpload. File uploads are abstracted by Waffle's org.codehaus.waffle.io.FileUploader interface which can be declared as dependency by the controllers. Waffle provides a request-based implementation.

Let's walk through an example. The controller would simply declare the dependency: The RequestFileUploader needs to be registered in at request scope, along with any dependency it needs. A few comments are in order: