upload page after uploading

This commit is contained in:
2026-11-12 21:14:41 -05:00
parent 59c156f6ac
commit 350bf1842f
7 changed files with 118 additions and 15 deletions
+4 -4
View File
@@ -16,7 +16,7 @@
<input type="radio" name="upload-type" id="type-paste" />
<label for="type-paste">paste</label>
<div class="file-panel">
<form action="/upload?return=redirect" method="post" enctype="multipart/form-data">
<form action="/upload?return=html" method="post" enctype="multipart/form-data">
<label for="file-expiry">expiry</label>
<select id="paste-expiry" name="expiry">
{{range .Expiries}}
@@ -24,11 +24,11 @@
{{end}}
</select>
<input type="file" required name="file" />
<button type="submit">upload file</button>
<button type="submit" class="btn">upload file</button>
</form>
</div>
<div class="paste-panel">
<form action="/upload?return=redirect" method="post">
<form action="/upload?return=html" method="post">
<label for="paste-expiry">expiry</label>
<select id="paste-expiry" name="expiry">
@@ -37,7 +37,7 @@
{{end}}
</select>
<textarea id="content" name="content" rows="10" required placeholder="cmon, paste something already!"></textarea>
<button type="submit">upload paste</button>
<button type="submit" class="btn">upload paste</button>
</form>
</div>
</div>