ring.util.mime-type

Utility functions for determining the mime-types files.

default-mime-types

A map of file extensions to mime-types.

ext-mime-type

(ext-mime-type filename)(ext-mime-type filename mime-types)
Get the mimetype from the filename extension. Takes an optional map of
extensions to mimetypes that overrides values in the default-mime-types map.