The name of the filetype
Optional
mimeTypes: string[]Mimetypes for recognising the file type
Optional
extensions: string[]File extensions for recognising the file type
Optional
customMatch: ((type: string) => boolean)Custom logic to match the mimetype of the file
Optional
Readonly
extensionsFile extensions for recognising the file type
Optional
Readonly
mimeMimetypes for recognising the file type
Readonly
nameThe name of the filetype
Checks if a file is a match
The file to check against
Checks if a file is a match based on the filename and mimetype
The filename of the file
The mimetype of the file
A class that defined a custom file type as well as the logic to recognise it