mirror of
https://github.com/lammertb/libhttp.git
synced 2025-07-29 21:01:13 +03:00
Alternative to mg_upload (Step 28/?)
This commit is contained in:
@ -198,6 +198,11 @@ field_found(const char *key,
|
||||
struct mg_connection *conn = (struct mg_connection *)user_data;
|
||||
|
||||
mg_printf(conn, "%s:\r\n", key);
|
||||
|
||||
if (filename && *filename) {
|
||||
_snprintf(path, pathlen, "C:\\tmp\\%s", filename);
|
||||
return FORM_DISPOSITION_STORE;
|
||||
}
|
||||
return FORM_DISPOSITION_GET;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user