@Target(TYPE)
@Retention(RUNTIME)
public @interface MultipartConfig
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
Part components of a given
multipart/form-data request by calling
getPart or
getParts.
| Modifier and Type | Optional Element | Description |
|---|---|---|
int |
fileSizeThreshold |
The size threshold after which the file will be written to disk
|
java.lang.String |
location |
The directory location where files will be stored
|
long |
maxFileSize |
The maximum size allowed for uploaded files.
|
long |
maxRequestSize |
The maximum size allowed for multipart/form-data
requests
|
java.lang.String location
long maxFileSize
The default is -1L, which means unlimited.
Copyright © 1999-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms. Portions Copyright © 1999-2002 The Apache Software Foundation.