Register an InputFileMimetypeValidator instance on the UIComponent associated with the closest parent UIComponent custom action.
Example:
<nxu:inputFile value="#{document.file.content}"
filename="#{document.file.filename}"
editFilename="true">
<nxu:validateFileMimetype extensions=".jpg, .png" />
</nxu:inputFile>
| Info | Value |
|---|---|
| Validator ID | InputFileMimetypeValidator |
| Handler Class | None |
| Description | None |
| Name | Required | Type | Description |
|---|---|---|---|
extensions |
false
| javax.el.ValueExpression
(must evaluate to java.lang.String)
| String representing the list of extensions to check for a file, separated by commas. |
authorized |
false
| javax.el.ValueExpression
(must evaluate to java.lang.Boolean)
| Boolean indicating if the list of extensions represents authorized extensions or unauthorized ones. Defaults to true. |
binding |
false
| java.lang.Object | A ValueExpression that evaluates to an instance of the validator. |
Output generated by Vdldoc View Declaration Language Documentation Generator.