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://img.niak.fun Copy from URL: curl -F'url=http://example.com/image.jpg' https://img.niak.fun Secret URL: curl -F'file=@yourfile.png' -Fsecret= https://img.niak.fun Set expiry (24 hours): curl -F'file=@yourfile.png' -Fexpires=24 https://img.niak.fun 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://img.niak.fun/ID Update expiry: curl -Ftoken=TOKEN -Fexpires=72 https://img.niak.fun/ID Powered by CrafterBin (Common Lisp)