From 36dda991898ce621a0b0f7103f763690e73fa0ff Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Sat, 18 Jul 2020 07:56:11 +0300 Subject: Docs were extended, consts were added. --- examples/upload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/upload.c b/examples/upload.c index 8efceb7..c9752b6 100644 --- a/examples/upload.c +++ b/examples/upload.c @@ -10,7 +10,7 @@ void upload(struct magi_request *r) { char *name = magi_request_param(r, "name"); const struct magi_file *data = magi_request_file(r, "data"); - if (name && data) { /* If file to load and its name are in the request: */ + if (name && data) { /* If file and its name are in the request: */ rename("data", name); /* Rename loaded file to designated name. */ printf("

Uploaded!

"); /* And display success message. */ } -- cgit v1.2.3