Class DynamicFileUploadAction.UploadConfig

java.lang.Object
org.apache.struts2.showcase.fileupload.DynamicFileUploadAction.UploadConfig
Enclosing class:
DynamicFileUploadAction

public static class DynamicFileUploadAction.UploadConfig extends Object
Configuration holder for dynamic file upload validation rules.
  • Constructor Details

    • UploadConfig

      public UploadConfig()
  • Method Details

    • getAllowedMimeTypes

      public String getAllowedMimeTypes()
    • setAllowedMimeTypes

      public void setAllowedMimeTypes(String allowedMimeTypes)
    • getAllowedExtensions

      public String getAllowedExtensions()
    • setAllowedExtensions

      public void setAllowedExtensions(String allowedExtensions)
    • getMaxFileSize

      public Long getMaxFileSize()
    • setMaxFileSize

      public void setMaxFileSize(Long maxFileSize)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getMaxFileSizeFormatted

      public String getMaxFileSizeFormatted()
      Returns a human-readable string representation of the max file size.