Internet Direct (Indy) Version 9.0.2 Beta
GetMIMETypeFromFile
Retrieves the MIME type for a given file.

function GetMIMETypeFromFile(AFile: TFileName): string;
Parameters
AFile: TFileName
Name of the file to examine for the MIME type.

Returns
String - The MIME type for the specified file.

Description
GetMIMETypeFromFile is a String function used to determine the MIME type for the file specified in AFile.

GetMIMETypeFromFile uses a TIdMIMETable to determine the registered MIME type for the specified file.