fuck. list expiries + accept post form expiry

This commit is contained in:
2026-11-10 22:26:08 -05:00
parent 9bda8bc93d
commit 1b636ef51a
3 changed files with 14 additions and 7 deletions
+9 -3
View File
@@ -3,14 +3,20 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{.Title}}</title>
<title>minibin</title>
</head>
<body>
<h1>{{.Title}}</h1>
<p>{{.Description}}</p>
<h1>minibin</h1>
<p>simple file and paste hosting service</p>
<form action="/upload?redirect=true" method="post">
<label for="content">paste content</label>
<textarea id="content" name="content" rows="10" required></textarea>
<label for="paste-expiry">Expiry</label>
<select id="paste-expiry" name="expiry">
{{range .Expiries}}
<option value="{{.Label}}">{{.Label}}</option>
{{end}}
</select>
<button type="submit">upload paste</button>
</form>