frequently asked questions
how long are uploads/files kept for?
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.
are uploads modified in any way?
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.
be wary of any metadata included in the files you are uploading, especially photos from a phone as they may contain GPS data.
how do i upload via the api?
send a POST request to /upload. for files,
use multipart form data with a field named file.
for pastes, send the text with Content-Type: text/plain.
to add an expiry, append ?expiry={value}.
supported values are:
{{range $i, $expiry := .Expiries}}{{if $i}},{{end}}{{$expiry.Label}}{{end}}.
omitting an expiry will use the first expiry listed.
uploading the output of a command
cat super-cool-text.txt | curl -T - {{.Host}}
upload a file via curl
curl -F "file=@very-cool-image.png" localhost:8080/upload