command
module
Version:
v0.0.0-...-5697a5f
Opens a new window with list of versions in this module.
Published: Aug 13, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.