Skip to content

Reference for unit 'FpMimeTypes'

Unit to handle mapping of filename extensions to MIME type.

uses

Used units Description
System
Classes
sysutils
Contnrs Various general purpose classes: stack, queue, objectlists.
strutils

Overview

The fpmimetypes unit contains a class which handles mapping of filename extensions to MIME (Multipurpose Internet Mail Extensions) types. The TFPMimeTypes class handles this mapping. A global instance of this class is available through the MimeTypes function. The list of known mime types can be instantiated through the LoadKnownTypes method, or a file in the standard mime.types format can be loaded through the LoadFromFile method.