Class MultipartConfigFactory
java.lang.Object
org.springframework.boot.web.servlet.MultipartConfigFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a newMultipartConfigElement
instance.void
setFileSizeThreshold
(DataSize fileSizeThreshold) Sets thesize
threshold after which files will be written to disk.void
setLocation
(String location) Sets the directory location where files will be stored.void
setMaxFileSize
(DataSize maxFileSize) Sets the maximumsize
allowed for uploaded files.void
setMaxRequestSize
(DataSize maxRequestSize) Sets the maximumDataSize
allowed for multipart/form-data requests.
-
Constructor Details
-
MultipartConfigFactory
public MultipartConfigFactory()
-
-
Method Details
-
setLocation
Sets the directory location where files will be stored.- Parameters:
location
- the location
-
setMaxFileSize
-
setMaxRequestSize
-
setFileSizeThreshold
-
createMultipartConfig
Create a newMultipartConfigElement
instance.- Returns:
- the multipart config element
-