Class MultipartConfigFactory
java.lang.Object
org.springframework.boot.web.servlet.MultipartConfigFactory
Factory that can be used to create a 
MultipartConfigElement.- Since:
- 1.4.0
- Author:
- Phillip Webb
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionCreate a newMultipartConfigElementinstance.voidsetFileSizeThreshold(DataSize fileSizeThreshold) Sets thesizethreshold after which files will be written to disk.voidsetLocation(String location) Sets the directory location where files will be stored.voidsetMaxFileSize(DataSize maxFileSize) Sets the maximumsizeallowed for uploaded files.voidsetMaxRequestSize(DataSize maxRequestSize) Sets the maximumDataSizeallowed for multipart/form-data requests.
- 
Constructor Details- 
MultipartConfigFactorypublic MultipartConfigFactory()
 
- 
- 
Method Details- 
setLocationSets the directory location where files will be stored.- Parameters:
- location- the location
 
- 
setMaxFileSizeSets the maximumsizeallowed for uploaded files.- Parameters:
- maxFileSize- the maximum file size
 
- 
setMaxRequestSizeSets the maximumDataSizeallowed for multipart/form-data requests.- Parameters:
- maxRequestSize- the maximum request size
 
- 
setFileSizeThresholdSets thesizethreshold after which files will be written to disk.- Parameters:
- fileSizeThreshold- the file size threshold
 
- 
createMultipartConfigCreate a newMultipartConfigElementinstance.- Returns:
- the multipart config element
 
 
-