kcst

Temporary file hosting.

Retention Policy

min_age  = 3 hours
max_age  = 28 days
max_size = 100 MiB

retention = min_age + (max_age - min_age) * (1 - sqrt(size/max_size))

   days
     28 |.
        | ..
        |   ...
        |      ....
        |          .....
        |               ......
        |                     .......
        |                            ........
      1 |                                    ...............
        +-------------------------------------------------->
        0                    50                          100
                                                         MiB
    

Smaller files are retained longer. A 100 MiB file lives ~3 hours, while tiny files can stay up to 28 days.

Uploading Files

Send a POST request with multipart/form-data containing a file field.

Field Description
file The file to upload (max 100 MiB)

cURL Examples

# Upload a file
curl -F '[email protected]' https://cdn.keircn.com

# Upload from stdin
echo "hello world" | curl -F 'file=@-;filename=hello.txt' https://cdn.keircn.com

# Upload with a custom filename
curl -F '[email protected];filename=custom.bin' https://cdn.keircn.com
File Size Retention
100 MiB ~3 hours
50 MiB ~9 days
25 MiB ~14 days
10 MiB ~19 days
1 MiB ~25 days
<1 KiB ~28 days