CRAFTERBIN ========== Temporary file sharing service. min_age = 7 days max_age = 365 days max_size = 512.0 MiB 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. 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 | Sets maximum lifetime in hours OR expiration | ms epoch | 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 Powered by CrafterBin (Common Lisp)