diff options
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. */ } |