Indy 9
GetMIMETypeFromFile
See Also, Unit: IdGlobal
Retrieves the MIME type for a given file.
function GetMIMETypeFromFile(const AFile: TFileName): string;
Unit
IdGlobal
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.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.