38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>minibin</title>
|
|
</head>
|
|
<body>
|
|
<h1>minibin</h1>
|
|
<p>simple file and paste hosting service</p>
|
|
<noscript>
|
|
Javascript is required for drag and drop upload, upload progress, and a few other features. <a href="/nojs/">No Javascript version</a>
|
|
</noscript>
|
|
<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>
|
|
|
|
<form action="/upload?redirect=true" method="post" enctype="multipart/form-data">
|
|
<input type="file" required name="file"/>
|
|
<label for="file-expiry">Expiry</label>
|
|
<select id="paste-expiry" name="expiry">
|
|
{{range .Expiries}}
|
|
<option value="{{.Label}}">{{.Label}}</option>
|
|
{{end}}
|
|
</select>
|
|
<button type="submit">upload File</button>
|
|
</form>
|
|
</body>
|
|
</html>
|