Apache Tomcat 7.0.109

Package org.apache.tomcat.util.http.fileupload.servlet

An implementation of FileUpload for use in servlets conforming to JSR 53.

See: Description

Package org.apache.tomcat.util.http.fileupload.servlet Description

An implementation of FileUpload for use in servlets conforming to JSR 53. This implementation requires only access to the servlet's current HttpServletRequest 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.
        ServletFileUpload upload = new ServletFileUpload(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.

Apache Tomcat 7.0.109

Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.