getFileAccept()function

getFileAccept(types: FileTypes): string
ParamType
typesFileTypes
The allowed file types. required
Return
string
A comma-separated list of MIME types.

Get the accept attribute of a file input for a set of file types, e.g. "image/jpeg,image/png".

  • Each MIME type shows once, even when two extensions share it.