GetMIMETypeFromFile
Retrieves the MIME type for a given file.
function GetMIMETypeFromFile(const AFile: TFileName): string;
Unit
Parameters
const AFile: TFileName
Name of the file to examine for the MIME type.
Return Value
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 instance to determine the registered MIME type for the specified file.