Topic Path: Symbol Reference > Functions > GetMIMETypeFromFile Function
ContentsIndexHome
PreviousUpNext
GetMIMETypeFromFile Function

Retrieves the MIME type for a given file.

File
function GetMIMETypeFromFile(
    const AFile: String
): string;
Parameters 
Description 
AFile 
Name of the file to examine for the MIME type. 

String - The MIME type for the specified file.

GetMIMETypeFromFile is a String function used to determine the MIME type for the file specified in AFile. GetMIMETypeFromFile uses methods in a TIdMIMETable instance to determine the registered MIME type for the specified file.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.