File Link

Upload

Drop files here or click to upload

Uploaded files may be purged after one week

CLI Usage

Requires Brook CLI Token. You can get it from Brook.

One-line command:

curl -H "cliToken: $CLIToken" -T /path/to/file.txt https://upload.shiliew.com/file.txt

Helper function (Add the following function to your .bashrc or .bash_profile):

filelink() {
    if [ -z "$1" ]; then
        echo '$ filelink /path/to/file'
        return 1
    fi
    if [ ! -f "$1" ]; then
        echo "file not found: $1"
        return 1
    fi
    local name=$(basename "$1")
    curl -H "cliToken: $CLIToken" -T "$1" "https://upload.shiliew.com/$name"
}

Then you can use filelink /path/to/file to upload files.