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" />
|
2020-07-13 13:59:16 +00:00
|
|
|
<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" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main>
|
|
|
|
<h1>datatrash</h1>
|
|
|
|
<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>
|
2021-02-13 15:47:04 +00:00
|
|
|
<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>
|
2021-02-13 15:47:04 +00:00
|
|
|
<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 />
|
2021-02-13 15:47:04 +00:00
|
|
|
<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>
|
2020-08-19 14:26:14 +00:00
|
|
|
<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>
|
2023-03-20 19:33:38 +00:00
|
|
|
<p>
|
|
|
|
<label for="upload-file">datei hochladen</label>
|
|
|
|
<code id="upload-file"
|
|
|
|
>curl -F 'file=@yourfile.rs'
|
|
|
|
<span class="origin"><origin></span>/upload</code
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label for="upload-text">text hochladen</label>
|
|
|
|
<code id="upload-text"
|
|
|
|
>curl -F 'text=your text'
|
|
|
|
<span class="origin"><origin></span>/upload</code
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label for="upload-with-time">zeitbegrenzung setzen</label>
|
|
|
|
<code id="upload-with-time"
|
|
|
|
>curl -F 'text=your text' -F 'keep_for=1800'
|
|
|
|
<span class="origin"><origin></span>/upload</code
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label for="upload-with-delete">nach einem download löschen</label>
|
|
|
|
<code id="upload-with-delete"
|
|
|
|
>curl -F 'text=your text' -F 'delete_on_download=true'
|
|
|
|
<span class="origin"><origin></span>/upload</code
|
|
|
|
>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label for="upload-with-auth">authentifizieren</label>
|
|
|
|
<code id="upload-with-auth"
|
|
|
|
>curl -F 'text=your text' -F 'password=…'
|
|
|
|
<span class="origin"><origin></span>/upload</code
|
|
|
|
>
|
|
|
|
</p>
|
2021-04-16 12:45:43 +00:00
|
|
|
</details>
|
2020-07-09 17:27:24 +00:00
|
|
|
</main>
|
2021-09-09 20:57:13 +00:00
|
|
|
<footer>
|
2023-02-10 23:16:51 +00:00
|
|
|
{abuse}
|
2021-09-09 20:57:13 +00:00
|
|
|
<a
|
2022-05-09 21:04:13 +00:00
|
|
|
href="https://git.ctdo.de/neri/datatrash"
|
2021-09-09 20:57:13 +00:00
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
|
|
|
repo
|
|
|
|
</a>
|
|
|
|
</footer>
|
2022-05-09 09:20:17 +00:00
|
|
|
<script src="/static/paste.js"></script>
|
2023-03-20 19:33:38 +00:00
|
|
|
<script src="/static/origin.js"></script>
|
2020-07-09 17:27:24 +00:00
|
|
|
</body>
|
|
|
|
</html>
|