Sign in Join
FPDoc Onlineexperiment

FpMimeTypes unit

Unit to handle mapping of filename extensions to MIME type.

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.

Classes and records

TFPMimeTypesclassClass to manage list of mime type mappings.
TMimeTypeclassHelper class to store a mime type and its associated extensions.

Procedures and functions

MimeTypesfunctionGlobal TFPMimeTypes instance.

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.