]> git.proxmox.com Git - ceph.git/blame - ceph/src/civetweb/docs/api/mg_get_builtin_mime_type.md
buildsys: switch source download to quincy
[ceph.git] / ceph / src / civetweb / docs / api / mg_get_builtin_mime_type.md
CommitLineData
11fdf7f2
TL
1# Civetweb API Reference
2
3### `mg_get_builtin_mime_type( file_name );`
4
5### Parameters
6
7| Parameter | Type | Description |
8| :--- | :--- | :--- |
9|**`file_name`**|`const char *`|The name of the file for which the MIME type has to be determined|
10
11### Return Value
12
13| Type | Description |
14| :--- | :--- |
15|`const char *`|A text string describing the MIME type|
16
17### Description
18
19The function `mg_get_builtin_mime_type()` tries to determine the MIME type of a given file. If the MIME type cannot be determined, the value `text/plain` is returned. Please note that this function does not an intelligent check of the file contents. The MIME type is solely determined based on the file name extension.
20
21### See Also
22
23* [`mg_send_mime_file();`](mg_send_mime_file.md)
24* [`mg_send_mime_file2();`](mg_send_mime_file2.md)