Package jakarta.servlet.annotation
Annotation Type MultipartConfig
-
@Target(TYPE) @Retention(RUNTIME) public @interface MultipartConfig
Annotation that may be specified on aServlet
class, indicating that instances of the Servlet expect requests that conform to the multipart/form-data MIME type.Servlets annotated with MultipartConfig may retrieve the
Part
components of a given multipart/form-data request by callinggetPart
orgetParts
.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
fileSizeThreshold
The size threshold after which the file will be written to diskString
location
The directory location where files will be storedlong
maxFileSize
The maximum size allowed for uploaded files.long
maxRequestSize
The 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:
- ""
-
-