{{template "site-header"}}

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.

{{if .NormalizeMIMETypes}}

why are my html/svg/pdf uploads not being rendered?

they are being normalized for security.

{{end}}

api usage

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.

you can also specify if you would prefer a long or short upload id, just append
?idlength=short to get a shorter id (10 characters), otherwise it defaults to long (16 character)

uploading the output of a command

cat super-cool-text.txt | curl -T - {{.Host}}/upload

upload a file via curl

curl -F "file=@very-cool-image.png" {{.Host}}/upload

getting upload info

you can retrieve an upload's metadata by simply appending /info to the end of an upload, like /{id}/info. it returns all stored metadata except for the original filename.