Package javax.servlet.annotation
Annotation Type MultipartConfig
-
@Target(TYPE) @Retention(RUNTIME) public @interface MultipartConfig
This annotation is used to indicate that theServlet
on which it is declared expects requests to made using themultipart/form-data
MIME type.
Part
components of a givenmultipart/form-data
request are retrieved by a Servlet annotated withMultipartConfig
by callingHttpServletRequest.getPart(java.lang.String)
orHttpServletRequest.getParts()
.
E.g.@WebServlet("/upload")}
@MultipartConfig()
public class UploadServlet extends HttpServlet ... }
- Since:
- Servlet 3.0
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
fileSizeThreshold
java.lang.String
location
long
maxFileSize
long
maxRequestSize
-