Class DynamicFileUploadAction.UploadConfig
java.lang.Object
org.apache.struts2.showcase.fileupload.DynamicFileUploadAction.UploadConfig
- Enclosing class:
- DynamicFileUploadAction
Configuration holder for dynamic file upload validation rules.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable string representation of the max file size.voidsetAllowedExtensions(String allowedExtensions) voidsetAllowedMimeTypes(String allowedMimeTypes) voidsetDescription(String description) voidsetMaxFileSize(Long maxFileSize)
-
Constructor Details
-
UploadConfig
public UploadConfig()
-
-
Method Details
-
getAllowedMimeTypes
-
setAllowedMimeTypes
-
getAllowedExtensions
-
setAllowedExtensions
-
getMaxFileSize
-
setMaxFileSize
-
getDescription
-
setDescription
-
getMaxFileSizeFormatted
Returns a human-readable string representation of the max file size.
-