datatrash/template/index.html

47 lines
1.5 KiB
HTML
Raw 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" />
</head>
<body>
<main>
<h1>datatrash</h1>
<form action="/upload" method="POST" enctype="multipart/form-data">
2020-08-03 00:41:36 +00:00
<label for="file-upload">datei</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 />
<textarea id="text-upload" name="text" rows="20" cols="120"></textarea>
<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>
<br />
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>
<section class="usage">
<pre>
file upload
curl -F 'file=@yourfile.rs' {upload_url}
text upload
curl -F 'text=your text' {upload_url}
including time
curl -F 'text=your text' -F 'keep_for=1800' {upload_url}
</pre>
</section>
2020-07-09 17:27:24 +00:00
</main>
</body>
</html>