diff --git a/examples/file-upload-single-post/main.c b/examples/file-upload-single-post/main.c index 9472354d..962ccd5a 100644 --- a/examples/file-upload-single-post/main.c +++ b/examples/file-upload-single-post/main.c @@ -22,11 +22,6 @@ static void cb(struct mg_connection *c, int ev, void *ev_data, void *fn_data) { MG_INFO(("Last chunk received, sending response")); mg_http_reply(c, 200, "", "ok (chunked)\n"); } - } else if (ev == MG_EV_HTTP_MSG && mg_http_match_uri(hm, "/upload")) { - MG_INFO(("Got all %lu bytes!", (unsigned long) hm->body.len)); - MG_INFO(("Query string: [%.*s]", (int) hm->query.len, hm->query.ptr)); - // MG_INFO(("Body:\n%.*s", (int) hm->body.len, hm->body.ptr)); - mg_http_reply(c, 200, "", "ok (%lu)\n", (unsigned long) hm->body.len); } else if (ev == MG_EV_HTTP_MSG) { struct mg_http_serve_opts opts = {.root_dir = "web_root"}; mg_http_serve_dir(c, hm, &opts);