datatrash/template/index.html

100 lines
3.2 KiB
HTML
Raw Permalink Normal View History

2020-07-09 17:27:24 +00:00
<!DOCTYPE html>
2020-08-03 00:41:36 +00:00
<html lang="de-DE">
2020-07-09 17:27:24 +00:00
<head>
<title>datatrash</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
2020-08-03 00:41:36 +00:00
<meta name="description" content="Temporärer Dateiaustausch" />
2020-07-09 17:27:24 +00:00
<link href="/static/index.css" rel="stylesheet" />
2023-07-10 20:33:17 +00:00
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg" />
<link
rel="icon"
type="image/vnd.microsoft.icon"
href="/static/favicon.ico"
/>
2020-07-09 17:27:24 +00:00
</head>
<body>
<main>
2023-07-10 20:33:17 +00:00
<h1>datatrash<img src="/static/favicon.svg" class="icon" /></h1>
2020-07-09 17:27:24 +00:00
<form action="/upload" method="POST" enctype="multipart/form-data">
2021-08-18 21:22:50 +00:00
<label for="file-upload">datei{max_size_snippet}</label>
<br />
<input id="file-upload" type="file" name="file" />
2020-07-09 17:27:24 +00:00
<br />
2020-08-03 00:41:36 +00:00
<label for="text-upload">oder asciitrash</label>
2020-07-09 17:27:24 +00:00
<br />
2022-01-29 12:16:04 +00:00
<textarea id="text-upload" name="text" rows="15" cols="120"></textarea>
<br />
2023-02-08 11:34:24 +00:00
<input
id="delete_on_download"
type="checkbox"
name="delete_on_download"
/>
<label for="delete_on_download">nach einem download löschen</label>
<br />
<label for="keep_for">gültig für</label>
<select id="keep_for" name="keep_for">
2020-07-09 17:27:24 +00:00
<option value="1800">30 minuten</option>
<option value="3600">60 minuten</option>
<option value="43200">12 stunden</option>
<option value="86400">24 stunden</option>
<option value="604800">eine woche</option>
<option value="2678400">einen monat</option>
2020-07-09 17:27:24 +00:00
</select>
2021-08-18 21:22:50 +00:00
<br />{auth_snippet}
2020-08-03 00:41:36 +00:00
<input class="main button" type="submit" value="hochladen" />
2020-07-09 17:27:24 +00:00
</form>
2021-04-16 12:45:43 +00:00
<details class="usage">
<summary>nutzung als api</summary>
<p>
<label>datei hochladen</label>
<code
>curl -F 'file=@yourfile.rs'
<span class="origin">&lt;origin&gt;</span>/upload</code
>
</p>
<p>
<label>text hochladen</label>
<code
>curl -F 'text=your text'
<span class="origin">&lt;origin&gt;</span>/upload</code
>
</p>
<p>
<label>zeitbegrenzung setzen</label>
<code
>curl -F 'text=your text' -F 'keep_for=1800'
<span class="origin">&lt;origin&gt;</span>/upload</code
>
</p>
<p>
<label>nach einem download löschen</label>
<code
>curl -F 'text=your text' -F 'delete_on_download=true'
<span class="origin">&lt;origin&gt;</span>/upload</code
>
</p>
<p>
<label>authentifizieren</label>
<code
>curl -F 'text=your text' -F 'password=…'
<span class="origin">&lt;origin&gt;</span>/upload</code
>
</p>
2021-04-16 12:45:43 +00:00
</details>
2020-07-09 17:27:24 +00:00
</main>
<footer>
2023-02-10 23:16:51 +00:00
{abuse}
<a
2022-05-09 21:04:13 +00:00
href="https://git.ctdo.de/neri/datatrash"
target="_blank"
rel="noopener noreferrer"
>
repo
</a>
</footer>
<script nonce="{script_nonce}" src="/static/paste.js"></script>
<script nonce="{script_nonce}" src="/static/origin.js"></script>
2020-07-09 17:27:24 +00:00
</body>
</html>