fixed an autoindex issue, working on uploading files

This commit is contained in:
Me
2022-08-12 23:45:13 +02:00
parent 4d395088d0
commit a69273b88e
6 changed files with 95 additions and 8 deletions

View File

@@ -7,9 +7,10 @@
<h1 style="text-align:center">Webserv in Test</h1>
<hr>
<p style="text-align:center">Time to submit something:</p>
<form action="/upload" method="post">
<input type="file" id="myFile" name="filename">
<input type="submit">
<form action="./srcs/cgi-bin/upload_file.php" method="post">
<input type="hidden" name="upload_dir" value="./www/uploaded/">
<input type="file" id="fileToUpload" name="myFile">
<input type="submit" value="Upload File">
</form>
</body>
</html>