Temporary file sharing service.
Small files live longer, large files expire sooner. Lifetime is computed from this curve:
Send HTTP POST requests with data encoded as multipart/form-data.
| Field | Content | Remarks |
|---|---|---|
| file | data | |
| url | remote URL | Mutually exclusive with "file". |
| secret | (ignored) | If present, generates a longer, hard-to-guess URL. |
| expires | hours or ms epoch | Maximum lifetime in hours, or expiration as milliseconds since UNIX epoch. |
curl -F'file=@yourfile.png' https://crafterbin.glennstack.dev
curl -F'url=http://example.com/image.jpg' https://crafterbin.glennstack.dev
curl -F'file=@yourfile.png' -Fsecret= https://crafterbin.glennstack.dev
curl -F'file=@yourfile.png' -Fexpires=24 https://crafterbin.glennstack.dev
The X-Token response header contains a management token. Use -i with cURL to see it.
curl -Ftoken=TOKEN -Fdelete= https://crafterbin.glennstack.dev/ID
curl -Ftoken=TOKEN -Fexpires=72 https://crafterbin.glennstack.dev/ID