This annotation performs settings for the Servlet that deals with multipart/form-data requests.
The following table lists the @MultipartConfig attributes:
Attribute name | Functionality |
---|---|
fileSizeThreshold | This attribute sets the threshold size of the uploaded file written on the disk. |
location | This attribute specifies the directory that stores the uploaded file. |
maxFileSize | This attribute specifies the maximum size of the uploaded file. |
maxRequestSize | This attribute specifies the maximum size of multipart/form-data requests. |
Details of each attributes are as follows: