Package javax.servlet.annotation
Annotation Type MultipartConfig
-
@Target(TYPE) @Retention(RUNTIME) public @interface MultipartConfig
This 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 intfileSizeThresholdStringlocationlongmaxFileSizelongmaxRequestSize
-
-
-
Element Detail
-
location
String location
- Returns:
- location in which the Container stores temporary files
- Default:
- ""
-
-