moved to web, forgot to exclude in gitignore
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
<!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" />
|
||||
{{if .Qt}}
|
||||
<style>
|
||||
:root {
|
||||
--qt-url: url("{{.Qt}}");
|
||||
}
|
||||
</style>
|
||||
{{end}}
|
||||
</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>
|
||||
{{if .NormalizeMIMETypes}}
|
||||
<h3>why are my html/svg/pdf uploads not being rendered?</h3>
|
||||
<p>they are being normalized for security.</p>
|
||||
{{end}}
|
||||
<h2>api usage</h2>
|
||||
<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>
|
||||
<p>
|
||||
you can also specify if you would prefer a long or short upload id, just
|
||||
append <br> <code>?idlength=short</code> to get a shorter id (10 characters),
|
||||
otherwise it defaults to long (16 character)
|
||||
</p>
|
||||
<h4>uploading the output of a command</h4>
|
||||
<code>cat super-cool-text.txt | curl -T - {{.Host}}/upload</code>
|
||||
<h4>upload a file via curl</h4>
|
||||
<code>curl -F "file=@very-cool-image.png" {{.Host}}/upload</code>
|
||||
<h3>getting upload info</h3>
|
||||
<p>
|
||||
you can retrieve an upload's metadata by simply appending <code>/info</code> to the end of an upload, like <code>/{id}/info</code>.
|
||||
it returns all stored metadata except for the original filename.
|
||||
</p>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user