upload_form.html

+ need to add multipart/form-data parsing
This commit is contained in:
LuckyLaszlo
2022-08-13 01:15:59 +02:00
parent c7bbf29a1b
commit 058701f657
2 changed files with 11 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ void Webserv::_autoindex(Client *client, const std::string &path)
if (strcmp(".", ent->d_name) == 0)
continue ;
dir_list.append("<a href=\"");
dir_list.append(client->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);