Properties

accept

accept?: string | (string | RegExp)[]

An array of accepted file mime types, also accepts the wildcard character for example ['image/*']

format

format?: (mimeTypes: string[]) => string

Formats the mime types for presentation in a validation message. By default will use the uppercased last part of the mime types joined with ‘,’