37 lines
1,000 B
HTML
37 lines
1,000 B
HTML
{{/*
|
|
SPDX-FileCopyrightText: 2021 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
*/}}
|
|
|
|
{{define "main"}}
|
|
<label for="file">
|
|
<div class="dropbox with-js">
|
|
Click or drop to upload files
|
|
</div>
|
|
</label>
|
|
|
|
<form action="{{app "upload"}}" method="POST" enctype="multipart/form-data">
|
|
<div class="no-js">
|
|
<label for="file">Select file:</label> <input type="file" name="file" id="file" multiple> <input type="submit" value="Upload!">
|
|
</div>
|
|
|
|
<label for="expiry">Expiry:</label>
|
|
<select name="expiry" id="expiry">
|
|
<option value="" selected>never</option>
|
|
<option value="1m">1 minute</option>
|
|
<option value="5m">5 minutes</option>
|
|
<option value="1h">1 hour</option>
|
|
<option value="24h">1 day</option>
|
|
<option value="168h">1 week</option>
|
|
<option value="672h">4 weeks</option>
|
|
<option value="8760h">1 year</option>
|
|
</select>
|
|
</form>
|
|
|
|
<ol class="upload-list"></ol>
|
|
{{end}}
|
|
|
|
{{define "extra_body_classes" -}}
|
|
upload-page
|
|
{{- end}}
|