1
0
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:
bel
2016-01-19 20:48:19 +01:00
parent b61763b836
commit bef7a76451
2 changed files with 59 additions and 22 deletions

View File

@ -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;
}