Sign in Join
FPDoc Onlineexperiment

TFPMimeTypes.AddType procedure

Member of TFPMimeTypespublicIn unit FpMimeTypes

Add a MIME type to the list.

Declaration

pascal
procedure AddType(const AMimeType: string; const AExtensions: string)

Arguments

AMimeType

MIME type to add.

AExtensions

Semicolon-separated list of extensions to associate with the MIME type.

Description

AddType can be used to add AMimeType to the list of known MIME types, and associate a semicolon-separated list of extensions AExtensions with it. If AMimeType is already present in the list of MIME types, then the list of extensions in AExtensions is merged with the existing extensions. The extensions may not have a dot character prepended to them.

See also

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