IValidationRule
@spartanfx/react / IValidationRule
Interface: IValidationRule
Validation rule for file uploads.
Properties
| Property | Type | Description |
|---|---|---|
message | string | Error message to display |
type | "custom" | "fileType" | "fileSize" | "totalSize" | Rule type |
validate | (file, allFiles?) => boolean | Validation function |