diff options
| -rw-r--r-- | http.c | 1 | ||||
| -rw-r--r-- | include/slweb/http.h | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1488,6 +1488,7 @@ static int apply_from_file(struct http_ctx *const h, struct form *const f) *pf = (const struct http_post_file) { + .name = f->name, .tmpname = f->tmpname, .filename = f->filename }; diff --git a/include/slweb/http.h b/include/slweb/http.h index db2c0b6..7f5935a 100644 --- a/include/slweb/http.h +++ b/include/slweb/http.h @@ -35,7 +35,7 @@ struct http_payload const struct http_post_file { - const char *tmpname, *filename; + const char *name, *tmpname, *filename; } *files; } post; } u; |
