Internet Direct (Indy)
Home
PreviousUpNext
TIdMimeTable.GetFileMIMEType Method
Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.