public class MultipartConfigFactory extends Object
MultipartConfigElement
.Constructor and Description |
---|
MultipartConfigFactory() |
Modifier and Type | Method and Description |
---|---|
javax.servlet.MultipartConfigElement |
createMultipartConfig()
Create a new
MultipartConfigElement instance. |
void |
setFileSizeThreshold(org.springframework.util.unit.DataSize fileSizeThreshold)
Sets the
size threshold after which files will be written to disk. |
void |
setLocation(String location)
Sets the directory location where files will be stored.
|
void |
setMaxFileSize(org.springframework.util.unit.DataSize maxFileSize)
Sets the maximum
size allowed for uploaded files. |
void |
setMaxRequestSize(org.springframework.util.unit.DataSize maxRequestSize)
Sets the maximum
DataSize allowed for multipart/form-data requests. |
public void setLocation(String location)
location
- the locationpublic void setMaxFileSize(org.springframework.util.unit.DataSize maxFileSize)
size
allowed for uploaded files.maxFileSize
- the maximum file sizepublic void setMaxRequestSize(org.springframework.util.unit.DataSize maxRequestSize)
DataSize
allowed for multipart/form-data requests.maxRequestSize
- the maximum request sizepublic void setFileSizeThreshold(org.springframework.util.unit.DataSize fileSizeThreshold)
size
threshold after which files will be written to disk.fileSizeThreshold
- the file size thresholdpublic javax.servlet.MultipartConfigElement createMultipartConfig()
MultipartConfigElement
instance.Copyright © 2019 Pivotal Software, Inc.. All rights reserved.