File upload form

This one for you tulg.
This commit is contained in:
CronyAkatsuki 2023-12-21 12:08:07 +01:00
parent 66fd12473e
commit 2c1342a20e
2 changed files with 14 additions and 1 deletions

View file

@ -22,6 +22,14 @@
<code>curl -F "file=@/path/to/file" "{{.Host}}"</code>
</p>
<p>
Or for <a href="https://poggerer.xyz/">Tulg</a> on a windows pc ;)
<form action="/" method="post" enctype="multipart/form-data">
File: <input type="file" name="file"> <input type="submit" value="submit">
</form>
</p>
<p>
To delete a file using curl:
<code>curl "{{.Host}}/delete/file_name"</code>