MultipartConfigFactory

Factory that can be used to create a MultipartConfigElement.

Author

Phillip Webb

Since

1.4.0

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun createMultipartConfig(): MultipartConfigElement
Create a new MultipartConfigElement instance.
Link copied to clipboard
open fun setFileSizeThreshold(fileSizeThreshold: DataSize)
Sets the size threshold after which files will be written to disk.
Link copied to clipboard
open fun setLocation(location: String)
Sets the directory location where files will be stored.
Link copied to clipboard
open fun setMaxFileSize(maxFileSize: DataSize)
Sets the maximum size allowed for uploaded files.
Link copied to clipboard
open fun setMaxRequestSize(maxRequestSize: DataSize)
Sets the maximum DataSize allowed for multipart/form-data requests.