Extends ValidatorExtensionOptions
Properties
accept
An array of accepted file mime types, also accepts the wildcard character for example ['image/*']
accept?: string | (string | RegExp)[]
format
Formats the mime types for presentation in a validation message. By default will use the uppercased last part of the mime types joined with ‘,’
format?: (mimeTypes: string[]) => string