Add upload button

This commit is contained in:
nyx 2025-02-02 20:54:43 -06:00
parent d348ba7a2e
commit d9ceca8b77

View file

@ -93,28 +93,9 @@
{% if q is not defined and "s=newest" not in request.url %} <a href="/?s=newest">Sort by newest</a> {% endif %}
<details>
<summary>Or post an image</summary>
<form method="POST" enctype="multipart/form-data">
<label for="desc">Image description:</label>
<input type="text" name="desc" id="desc" placeholder="description" autocomplete="off" maxlength="{{ desc_len }}" />
<br />
<label for="key">Access key:</label>
<input type="password" name="key" id="key" placeholder="key" maxlength="{{ key_len }}" required />
<br />
<label for="image">Image:</label>
<input type="file" accept="image/*" name="image" id="image" placeholder="the image" required />
<br />
<button type="post">Post</button>
<form action="upload">
<input type="submit" value="Upload an image" />
</form>
</details>
</div>
<br />