45 lines
1.7 KiB
HTML
45 lines
1.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>faq | minibin</title>
|
|
<link rel="stylesheet" href="/css/main.css" />
|
|
</head>
|
|
<body>
|
|
{{template "site-header"}}
|
|
<main>
|
|
<h2>frequently asked questions</h2>
|
|
<h3>how long are uploads/files kept for?</h3>
|
|
<p>
|
|
minibin will store them for as long as their set expiry, unless they
|
|
violate the TOS or have not been accessed in a long time.
|
|
</p>
|
|
<h3>are uploads modified in any way?</h3>
|
|
<p>
|
|
no, all uploads are exactly the same as what you uploaded. uploads are
|
|
not compressed, transformed, or modified in any way, not even exif data.
|
|
</p>
|
|
<p>
|
|
be wary of any metadata included in the files you are uploading,
|
|
especially photos from a phone as they may contain GPS data.
|
|
</p>
|
|
<h3>how do i upload via the api?</h3>
|
|
<p>
|
|
send a POST request to <code>/upload</code>. for files,
|
|
use multipart form data with a field named <code>file</code>.
|
|
for pastes, send the text with <code>Content-Type: text/plain</code>.
|
|
</p>
|
|
<p>
|
|
to add an expiry, append <code>?expiry={value}</code>. <br>supported values are:
|
|
<code>{{range $i, $expiry := .Expiries}}{{if $i}},{{end}}{{$expiry.Label}}{{end}}</code>.
|
|
omitting an expiry will use the first expiry listed.
|
|
</p>
|
|
<h4>uploading the output of a command</h4>
|
|
<code>cat super-cool-text.txt | curl -T - {{.Host}}</code>
|
|
<h4>upload a file via curl</h4>
|
|
<code>curl -F "file=@very-cool-image.png" localhost:8080/upload</code>
|
|
</main>
|
|
</body>
|
|
</html>
|