Description
Parses MIME type names and matches them against accepted media ranges. It helps web applications and APIs choose content types, negotiate responses, or decide whether an uploaded format is acceptable.
MIME parsing helps routing decisions but is not a full validation of file contents. Combine it with file inspection and policy checks for untrusted uploads.