cloudflarekvstoreage

command module
v0.0.0-...-5697a5f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 8 Imported by: 0

README

Environment Variables

ENV Description
TOKEN your access token
KV name of your KV storage space

Example Usage

List All Files:

Visit: https://yourdomain.com?token=yourtoken This will display a list of all files stored in your KV storage, each with a link to download it.

Download a Specific File:

Visit: https://yourdomain.com/yourfile.txt?token=yourtoken This will download the specified file.

Upload a File:

Use a request like:

curl -X POST "https://your-worker-url/your-filename?token=yourtoken" \
     -F "file=@/path/to/your/file.txt"

Or use upload.sh:

chmod +x upload.sh
./upload.sh <file_path> <worker_url> <token>

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL