Util GetMimeType Method
This method returns the MIME type of the specified file.

Namespace: HotDocs.Sdk
Assembly: HotDocs.Sdk (in HotDocs.Sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public static string GetMimeType(
	string fileName,
	bool onlyImages = false
)

Parameters

fileName
Type: OnlineSystem String
The file name (including extension) of the file. (The MIME type is determined from the extension, so the file name must have an extension.)
onlyImages (Optional)
Type: OnlineSystem Boolean
Indicates whether or not all known MIME types should be checked, or only a small number of supported image MIME types.

Return Value

Type: OnlineString
A string containing the MIME type for the file.
See Also