Package jakarta.servlet.annotation
Annotation Type MultipartConfig
-
@Target(TYPE) @Retention(RUNTIME) public @interface MultipartConfig
Annotation that may be specified on aServletclass, indicating that instances of the Servlet expect requests that conform to the multipart/form-data MIME type.Servlets annotated with MultipartConfig may retrieve the
Partcomponents of a given multipart/form-data request by callinggetPartorgetParts.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intfileSizeThresholdThe size threshold after which the file will be written to diskStringlocationThe directory location where files will be storedlongmaxFileSizeThe maximum size allowed for uploaded files.longmaxRequestSizeThe maximum size allowed for multipart/form-data requests
-
-
-
Element Detail
-
location
String location
The directory location where files will be stored- Returns:
- the directory location where files will be stored
- Default:
- ""
-
-