Class MimeTypesMap
Mime type map
Inherited Members
Namespace:FubarDev.WebDavServer.Utils
Assembly:FubarDev.WebDavServer.dll
Syntax
public static class MimeTypesMap
Remarks
Taken from the project https://github.com/hey-red/MimeTypesMap
Fields
| Improve this Doc View SourceDefaultMimeType
The default mime type
Declaration
public const string DefaultMimeType = "application/octet-stream"
Field Value
| Type | Description |
|---|---|
| String |
FolderContentType
The mime type for a collection
Declaration
public const string FolderContentType = "httpd/unix-directory"
Field Value
| Type | Description |
|---|---|
| String |
Methods
| Improve this Doc View SourceGetMimeType(String)
Gets the mime type of a document name
Declaration
public static string GetMimeType(string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fileName | The document name to get the mime type for |
Returns
| Type | Description |
|---|---|
| String | The mime type of the fileName |