2023-11-06 21:53:45 +01:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>zettoit bin</title>
|
2023-11-10 16:07:15 +01:00
|
|
|
<link rel="icon" type="image/svg" href="/static/zettoit.svg"/>
|
|
|
|
<link rel="stylesheet" href="/static/zettoit.css"/>
|
2023-11-06 21:53:45 +01:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main>
|
|
|
|
<h1>zettoIT bin</h1>
|
|
|
|
<p>
|
|
|
|
An empty bin was created for you. The first HTTP POST or PUT request can upload data.
|
|
|
|
All following requests can only read the uploaded data.
|
|
|
|
</p>
|
|
|
|
<p>To change the default expiration date, you can use the `?ttl=<seconds_to_live>` parameter.</p>
|
|
|
|
<p>After uploading data, you can access it by accessing <%= bin_url %> with an optional file extension that suits the data that you uploaded.</p>
|
|
|
|
<h1>Upload a image</h1>
|
|
|
|
<pre>
|
|
|
|
$ curl -H "Content-Type: image/png" -T my-image.png <%= bin_url %>`
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
<h1>Upload a big file</h1>
|
|
|
|
<pre>
|
|
|
|
$ curl -X POST -H "Content-Type: application/gzip" -T my-file.tar.gz <%= bin_url %>
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
<h1>Pipe into curl</h1>
|
|
|
|
<pre>
|
|
|
|
$ tar -cz my-files | curl -H "Content-Type: application/gzip" -T - <%= bin_url %>
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
<h1>Encryption</h1>
|
|
|
|
<pre>
|
|
|
|
$ tar -cz my-files | gpg -co tmp.tar.gz
|
|
|
|
$ curl -H "Content-Type: application/octet-stream" -T tmp.tar.gz <%= bin_url %>
|
|
|
|
$ curl <%= bin_url %> | gpg -d - | tar -xzf
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
<h1>Browser upload</h1>
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
|
|
<input type="file" name="file"></input>
|
|
|
|
<button type="submit">Upload</button>
|
|
|
|
</form>
|
|
|
|
</main>
|
2023-11-10 16:07:15 +01:00
|
|
|
<a class="watermark" href="https://git2.zettoit.eu/zettoit"><img src="/static/zettoit.svg" alt="zettoIT Logo"></a>
|
2023-11-06 21:53:45 +01:00
|
|
|
</body>
|
|
|
|
</html>
|