Enum MimeDatabase.Match

Options for mimeTypeForFile

enum Match : int { ... }

Enum members

NameDescription
all Use all recipes to detect MIME type.
emptyFileFallback Provide application/x-zerosize fallback if mime type can't be detected, but data is known to be zero size.
globPatterns Match file name against glob patterns.
inodeType Provide inode/* type for files other than regular files.
magicRules Match file content against magic rules. With MatchOptions.globPatterns flag it's used only in conflicts.
namespaceURI Try to clarify mime type in case it's XML.
octetStreamFallback Provide application/octet-stream fallback if data seems to be binary.
textFallback Provide text/plain fallback if data seems to be textual.