Package org.apache.commons.fileupload2.portlet


package org.apache.commons.fileupload2.portlet

An implementation of AbstractFileUpload for use in portlets conforming to JSR 168. This implementation requires only access to the portlet's current ActionRequest instance, and a suitable FileItemFactory implementation, such as DiskFileItemFactory.

The following code fragment demonstrates typical usage.

DiskFileItemFactory factory = DiskFileItemFactory().builder().get();
// Configure the factory here, if desired.
PortletFileUpload upload = new PortletFileUpload(factory);
// Configure the uploader here, if desired.
List fileItems = upload.parseRequest(request);

Please see the FileUpload User Guide for further details and examples of how to use this package.

  • Classes
    Class
    Description
    JavaxPortletFileUpload<I extends org.apache.commons.fileupload2.core.FileItem<I>, F extends org.apache.commons.fileupload2.core.FileItemFactory<I>>
    High level API for processing file uploads.
    Provides access to the request information needed for a request made to a portlet.