1 # Civetweb API Reference
3 ### `mg_send_file( conn, path );`
7 | Parameter | Type | Description |
9 |**`conn`**|`struct mg_connection *`|The connection over which the file must be sent|
10 |**`path`**|`const char *`|The full path and filename of the file|
18 The function `mg_send_file()` sends the contents of a file over a connection to the remote peer. The function also adds the necessary HTTP headers.
22 * [`mg_printf();`](mg_printf.md)
23 * [`mg_send_mime_file();`](mg_send_mime_file.md)
24 * [`mg_send_mime_file2();`](mg_send_mime_file2.md)
25 * [`mg_write();`](mg_write.md)