2021-03-20 20:40:40 +00:00
|
|
|
{{/*
|
|
|
|
SPDX-FileCopyrightText: 2021 Luke Granger-Brown <depot@lukegb.com>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/}}
|
|
|
|
|
2021-03-20 19:51:57 +00:00
|
|
|
{{define "main"}}
|
2021-03-21 23:10:15 +00:00
|
|
|
<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>
|
2021-03-20 19:51:57 +00:00
|
|
|
{{end}}
|
2021-03-21 23:10:15 +00:00
|
|
|
|
|
|
|
{{define "extra_body_classes" -}}
|
|
|
|
upload-page
|
|
|
|
{{- end}}
|