Interface FileUploadValidationService

All Superinterfaces:
org.apache.wicket.util.io.IClusterable, IValidationService, Serializable
All Known Implementing Classes:
DefaultUploadValidationService, ImageUploadValidationService

public interface FileUploadValidationService extends IValidationService
  • Field Details

    • DEFAULT_MAX_FILE_SIZE

      static final String DEFAULT_MAX_FILE_SIZE
      See Also:
    • DEFAULT_EXTENSIONS_ALLOWED

      static final String[] DEFAULT_EXTENSIONS_ALLOWED
  • Method Details

    • validate

      void validate(org.apache.wicket.markup.html.form.upload.FileUpload upload) throws ValidationException
      Throws:
      ValidationException
    • addViolation

      void addViolation(String key, Object... params)
    • getAllowedExtensions

      String[] getAllowedExtensions()
    • setAllowedExtensions

      void setAllowedExtensions(String[] extensions)
    • getMaxFileSize

      org.apache.wicket.util.lang.Bytes getMaxFileSize()