From 058701f657f655385070735e37c5fd66c5b20fa3 Mon Sep 17 00:00:00 2001 From: LuckyLaszlo Date: Sat, 13 Aug 2022 01:15:59 +0200 Subject: [PATCH] upload_form.html + need to add multipart/form-data parsing --- srcs/webserv/method_get.cpp | 2 +- www/upload_form.html | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 www/upload_form.html diff --git a/srcs/webserv/method_get.cpp b/srcs/webserv/method_get.cpp index a0bcd7c..fcc8045 100644 --- a/srcs/webserv/method_get.cpp +++ b/srcs/webserv/method_get.cpp @@ -127,7 +127,7 @@ void Webserv::_autoindex(Client *client, const std::string &path) if (strcmp(".", ent->d_name) == 0) continue ; dir_list.append("assigned_location->path + "/"); + dir_list.append(client->get_rq_abs_path() + "/"); dir_list.append(ent->d_name); dir_list.append("\">"); dir_list.append(ent->d_name); diff --git a/www/upload_form.html b/www/upload_form.html new file mode 100644 index 0000000..9eecb29 --- /dev/null +++ b/www/upload_form.html @@ -0,0 +1,10 @@ + +
+ + +