Internet Direct (Indy) Version 9.0.2 Beta
ReturnMIMEType
Constructs the MIME media type, subtype and encoding for the file.

function ReturnMIMEType(var MediaType: String; var EncType: String): Boolean;
Parameters
var MediaType: String
Media type and subtype for the file.

var EncType: String
Encoding for the file.

Returns
Boolean - True when MIME type is found, False when not found.

Description
ReturnMIMEType is a Boolean function that constructs the complete MIME media type, subtype, and encoding from the parameters for the function.