Topic Path: Symbol Reference > Classes > TIdMimeTable Class > TIdMimeTable Methods > GetFileMIMEType Method
ContentsIndexHome
PreviousUpNext
TIdMimeTable.GetFileMIMEType Method
function GetFileMIMEType(
    const AFileName: string
): string;
Parameters 
Description 
fileName 
The file name to be examined. 

String - The registered MIME type for the file name.

GetFileMIMEType is a String function used to retrieve the registered MIME type for the file name specified in Filename. GetFileMIMEType examines the currently cached MIME types, but calls BuildCache is no registered MIME type exists in the cache for the specified file. If no MIME type is found after reloading the cache, the value "application/octet-stream" is used as the MIME type for the file.

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