lsd-transfer/templates/index.html
2019-07-30 13:08:45 +02:00

72 lines
2.1 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>t.lsd.cat ~ Temp file storage</title>
<style>
pre {
position: relative;
margin: 0 0 1.625em;
white-space: pre;
word-wrap: normal;
}
pre code {
overflow-x: auto;
display: block;
padding: 0 1em;
background: #657b83;
background-image: -webkit-linear-gradient(#5e737a 50%, transparent 50%);
background-image: linear-gradient(#5e737a 50%, transparent 50%);
background-size: 100% 3em;
background-position: 0 1.5em;
background-origin: content-box;
color: #fdf6e3;
line-height: 1.5;
font-size: 1em;
}
body {
max-width: 70em;
margin: 0 auto;
padding: 2em 4em;
background: #EEE8D5;
font-size: 100%;
}
h1,h2 {
color: #657b83;
}
</style>
</head>
<body>
<h1>t.lsd.cat</h1>
<p><small><i>MAX SIZE 500MB</i> ~ <i>MAX TLL 3 days</i></small></p>
<hr>
<h2>Usage</h2>
<p>Files can be directly uploaded from the command line using:<p>
<pre><code>
curl --upload-file &lt;localfile&gt; https://t.lsd.cat/
</code></pre>
<p>The above example will upload a file using the default TTL of 24 hours. For a custom TTL:</p>
<pre><code>
curl --upload-file &lt;localfile&gt; https://t.lsd.cat/160/ # 160 seconds
curl --upload-file &lt;localfile&gt; https://t.lsd.cat/2d3h5s/ # 2 days, 3 hours and 2 seconds
</code></pre>
<p>It is also possible to know the remaining TLL of an uploaded file:</p>
<pre><code>
curl https://t.lsd.cat/ttl/&lt;id&gt;
</code></pre>
<p>Files can also be renamed depending on the download request:</p>
<pre><code>
curl -O https://t.lsd.cat/&lt;id&gt; # Download with original filename
curl -O https://t.lsd.cat/&lt;id&gt;/&lt;filename&gt; # Download with &lt;filename&gt;
</code></pre>
<hr>
<footer>
<address><a href="https://lsd.cat" target="_blank">https://lsd.cat</a> ~ <a href="https://git.lsd.cat/g/lsd-transfer" target="_blank">Source</a></address>
</footer>
</body>
</html>