# Package org.apache.commons.fileupload.portlet

package org.apache.commons.fileupload.portlet

An implementation of `FileUpload` 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 = new DiskFileItemFactory();
            // 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.

- Related Packages
  Package
  Description
  org.apache.commons.fileupload
  A component for handling HTML file uploads as specified by RFC 1867.
  org.apache.commons.fileupload.disk
  A disk-based implementation of the `FileItem` interface.
  org.apache.commons.fileupload.servlet
  An implementation of `FileUpload` for use in servlets conforming to JSR 53.
  org.apache.commons.fileupload.util
  This package contains various IO related utility classes or methods, which are basically reusable and not necessarily restricted to the scope of a file upload.
- Classes
  Class
  Description
  PortletFileUpload
  High level API for processing file uploads.
  PortletRequestContext
  Provides access to the request information needed for a request made to a portlet.