From 288ab9834a67bf9d6189939c7035168e1f6cd6e8 Mon Sep 17 00:00:00 2001 From: Tina_Azure <-> Date: Wed, 14 Jun 2023 18:42:02 +0200 Subject: [PATCH] File Upload Progress display base implementation --- src/main.cpp | 3 +-- templates/TEST_UPLOAD.html | 45 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index fc06c39..7b89d90 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1064,8 +1064,7 @@ int main(int argc, char *argv[]) { }); - CROW_ROUTE(app, "/fileuploadtestExecution") - .methods(crow::HTTPMethod::Post)([](const crow::request& postRequest) { + CROW_ROUTE(app, "/fileuploadtestExecution").methods(crow::HTTPMethod::Post)([](const crow::request& postRequest) { crow::multipart::message multipartMessage(postRequest); for (const auto& part : multipartMessage.part_map) { diff --git a/templates/TEST_UPLOAD.html b/templates/TEST_UPLOAD.html index 28da6a3..abc15a3 100644 --- a/templates/TEST_UPLOAD.html +++ b/templates/TEST_UPLOAD.html @@ -2,6 +2,45 @@
{{> templateIncludes/style.css.html}} + +