index.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>t.lsd.cat ~ Temp file storage</title>
  7. <style>
  8. pre {
  9. position: relative;
  10. margin: 0 0 1.625em;
  11. white-space: pre;
  12. word-wrap: normal;
  13. }
  14. pre code {
  15. overflow-x: auto;
  16. display: block;
  17. padding: 0 1em;
  18. background: #657b83;
  19. background-image: -webkit-linear-gradient(#5e737a 50%, transparent 50%);
  20. background-image: linear-gradient(#5e737a 50%, transparent 50%);
  21. background-size: 100% 3em;
  22. background-position: 0 1.5em;
  23. background-origin: content-box;
  24. color: #fdf6e3;
  25. line-height: 1.5;
  26. font-size: 1em;
  27. }
  28. body {
  29. max-width: 70em;
  30. margin: 0 auto;
  31. padding: 2em 4em;
  32. background: #EEE8D5;
  33. font-size: 100%;
  34. }
  35. h1,h2 {
  36. color: #657b83;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <h1>t.lsd.cat</h1>
  42. <p><small><i>MAX SIZE 500MB</i> ~ <i>MAX TLL 3 days</i></small></p>
  43. <hr>
  44. <h2>Usage</h2>
  45. <p>Files can be directly uploaded from the command line using:<p>
  46. <pre><code>
  47. curl --upload-file &lt;localfile&gt; https://t.lsd.cat/
  48. </code></pre>
  49. <p>The above example will upload a file using the default TTL of 24 hours. For a custom TTL:</p>
  50. <pre><code>
  51. curl --upload-file &lt;localfile&gt; https://t.lsd.cat/160/ # 160 seconds
  52. curl --upload-file &lt;localfile&gt; https://t.lsd.cat/2d3h5s/ # 2 days, 3 hours and 2 seconds
  53. </code></pre>
  54. <p>It is also possible to know the remaining TLL of an uploaded file:</p>
  55. <pre><code>
  56. curl https://t.lsd.cat/ttl/&lt;id&gt;
  57. </code></pre>
  58. <p>Files can also be renamed depending on the download request:</p>
  59. <pre><code>
  60. curl -O https://t.lsd.cat/&lt;id&gt; # Download with original filename
  61. curl -O https://t.lsd.cat/&lt;id&gt;/&lt;filename&gt; # Download with &lt;filename&gt;
  62. </code></pre>
  63. <hr>
  64. <footer>
  65. <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>
  66. </footer>
  67. </body>
  68. </html>