Package jakarta.servlet.annotation
Annotation Type MultipartConfig
-
@Target(TYPE) @Retention(RUNTIME) public @interface MultipartConfigThis annotation is used to indicate that theServleton which it is declared expects requests to made using themultipart/form-dataMIME type.
Partcomponents of a givenmultipart/form-datarequest are retrieved by a Servlet annotated withMultipartConfigby 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 intfileSizeThresholdjava.lang.StringlocationlongmaxFileSizelongmaxRequestSize
-