Package javax.servlet.annotation
Annotation Type MultipartConfig
-
@Target(TYPE) @Retention(RUNTIME) public @interface MultipartConfig
Annotation that may be specified on aServlet
class, indicating that instances of theServlet
expect requests that conform to themultipart/form-data
MIME type.Servlets annotated with
MultipartConfig
may retrieve thePart
components of a givenmultipart/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 diskjava.lang.String
location
The directory location where files will be storedlong
maxFileSize
The maximum size allowed for uploaded files.long
maxRequestSize
The maximum size allowed formultipart/form-data
requests
-