Crafterbin

Temporary file sharing service.

Min age7 days
Max age365 days
Max size512.0 MiB

Retention

Small files live longer, large files expire sooner. Lifetime is computed from this curve:

retention = min_age + (max_age - min_age) * pow((1 - file_size / max_size), 3)

Uploading files

Send HTTP POST requests with data encoded as multipart/form-data.

FieldContentRemarks
filedata
urlremote URLMutually exclusive with "file".
secret(ignored)If present, generates a longer, hard-to-guess URL.
expireshours or ms epochMaximum lifetime in hours, or expiration as milliseconds since UNIX epoch.

cURL examples

Upload a file
curl -F'file=@yourfile.png' https://crafterbin.glennstack.dev
Copy from URL
curl -F'url=http://example.com/image.jpg' https://crafterbin.glennstack.dev
Secret URL
curl -F'file=@yourfile.png' -Fsecret= https://crafterbin.glennstack.dev
Set expiry (24 hours)
curl -F'file=@yourfile.png' -Fexpires=24 https://crafterbin.glennstack.dev

Managing files

The X-Token response header contains a management token. Use -i with cURL to see it.

Delete a file
curl -Ftoken=TOKEN -Fdelete= https://crafterbin.glennstack.dev/ID
Update expiry
curl -Ftoken=TOKEN -Fexpires=72 https://crafterbin.glennstack.dev/ID