jakarta.servlet.Servlet 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 jakarta. components of a
given multipart/form-data request by calling getPart
or getParts.
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the size threshold after which the file will be written to diskThe size threshold after which the file will be written to disk |
| public String | Returns: the directory location where files will be storedThe directory location where files will be stored |
| public long | Returns: the maximum size allowed for uploaded filesThe maximum size allowed for uploaded files. |
| public long | Returns: the maximum size allowed for multipart/form-data requestsThe maximum size allowed for multipart/form-data requests The default is -1L, which means unlimited. |
| fileSizeThreshold | back to summary |
|---|---|
| public int fileSizeThreshold() The size threshold after which the file will be written to disk
| |
| location | back to summary |
|---|---|
| public String location() The directory location where files will be stored
| |
| maxFileSize | back to summary |
|---|---|
| public long maxFileSize() The maximum size allowed for uploaded files. The default is -1L, which means unlimited.
| |
| maxRequestSize | back to summary |
|---|---|
| public long maxRequestSize() The maximum size allowed for multipart/form-data requests The default is -1L, which means unlimited.
| |