@Target(TYPE)
@Retention(RUNTIME)
public @interface MultipartConfig
Servlet
on
which it is declared expects requests to made using the
multipart/form-data
MIME type. Part
components of a given
multipart/form-data
request are retrieved by a Servlet annotated with
MultipartConfig
by calling
HttpServletRequest.getPart(java.lang.String)
or
HttpServletRequest.getParts()
.@WebServlet("/upload")}
@MultipartConfig()
public class UploadServlet extends
HttpServlet ... }
Modifier and Type | Optional Element | Description |
---|---|---|
int |
fileSizeThreshold |
|
java.lang.String |
location |
|
long |
maxFileSize |
|
long |
maxRequestSize |
java.lang.String location
long maxFileSize
Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.