TStaticModule.FindContentType Method
Returns the MIME content type associated with the extension of the given file name.
Syntax
Unit: Sparkle.Module.Static
class function TStaticModule.FindContentType(const FileName: string): string; static;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| const | FileName | string | The file name whose extension is looked up. |
Returns
The content type registered for the file extension, or application/octet-stream when the extension is not recognized.