1 # Civetweb API Reference
3 ### ~~`mg_upload( conn, destination_dir );`~~
7 | Parameter | Type | Description |
9 |**`conn`**|`struct mg_connection *`|Connection on which files to upload|
10 |**`destination_dir`**|`const char *`|The destination directory to upload to|
14 | Type | Description |
16 |`int`|Success or error code|
20 The function `mg_upload()` is deprecated and may be removed from future releases. Use of this function is therefore highly discouraged.