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:
@ -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;
|
||||
|
Reference in New Issue
Block a user