upload_form.html
+ need to add multipart/form-data parsing
This commit is contained in:
@@ -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);
|
||||
|
||||
10
www/upload_form.html
Normal file
10
www/upload_form.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!--
|
||||
https://www.w3schools.com/howto/howto_html_file_upload_button.asp
|
||||
https://www.filestack.com/fileschool/html/html-file-upload-tutorial-example/
|
||||
https://www.rfc-editor.org/rfc/rfc9110#name-multipart-types
|
||||
https://www.rfc-editor.org/rfc/rfc2046#section-5.1.1
|
||||
-->
|
||||
<form action="/upload" method="post" enctype="multipart/form-data">
|
||||
<input type="file" id="myFile" name="upload_file">
|
||||
<input type="submit">
|
||||
</form>
|
||||
Reference in New Issue
Block a user