1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-07-29 21:01:13 +03:00

Alternative to mg_upload (Step 48/?)

This commit is contained in:
bel
2016-02-12 23:03:35 +01:00
parent 13a45e903f
commit 03047808a0
2 changed files with 29 additions and 11 deletions

View File

@ -201,7 +201,11 @@ field_found(const char *key,
mg_printf(conn, "%s:\r\n", key);
if (filename && *filename) {
_snprintf(path, pathlen, "C:\\tmp\\%s", filename);
#ifdef _WIN32
_snprintf(path, pathlen, "D:\\tmp\\%s", filename);
#else
snprintf(path, pathlen, "/tmp/%s", filename);
#endif
return FORM_FIELD_STORAGE_STORE;
}
return FORM_FIELD_STORAGE_GET;