diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2020-07-18 07:56:11 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2020-07-18 07:56:11 +0300 |
commit | 36dda991898ce621a0b0f7103f763690e73fa0ff (patch) | |
tree | cee197e13a1c42a5ee3ea67465d1151a9c0cc12a /examples | |
parent | 4d77e4bb69a47daf23ad4a902b300bf1aa7d5597 (diff) | |
download | magi-36dda991898ce621a0b0f7103f763690e73fa0ff.tar magi-36dda991898ce621a0b0f7103f763690e73fa0ff.tar.xz magi-36dda991898ce621a0b0f7103f763690e73fa0ff.zip |
Docs were extended, consts were added.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/upload.c | 2 |
1 files changed, 1 insertions, 1 deletions
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("<p>Uploaded!</p>"); /* And display success message. */ } |