Install
openclaw skills install file-upload-test上传文件到内部 BS3 存储(免签名)。Use when user asks to upload files, images, documents to storage, or get a shareable URL for a file.
openclaw skills install file-upload-test上传文件到内部 BS3 存储,生成可分享的文件 URL。
pip3 install boto3 botocore
http://bs3-hb1.internal| 操作 | 说明 | 输入 | 输出 |
|---|---|---|---|
upload_file | 上传本地文件 | 文件路径 | 文件 URL |
upload_bytes | 上传二进制数据 | 文件名 + 数据 | 文件 URL |
kkim-mario-clawbs3-hb1.corp.tencent.com 域名 URL# 上传文件
python3 ~/.openclaw/workspace/skills/file-upload/upload.py upload_file /path/to/file.png
# 输出示例
https://bs3-hb1.corp.tencent.com/kim-mario-claw/abc12345_file.png
from upload import upload_file, upload_bytes
# 上传文件
url = upload_file("my-image.png", "/path/to/file.png")
print(url)
# 上传二进制数据
with open("/path/to/file.png", "rb") as f:
data = f.read()
url = upload_bytes("my-image.png", data)
print(url)
用户说:
处理流程:
upload_file用户说:
处理流程:
upload_file用户说:
处理流程:
upload_bytes~/.openclaw/workspace/skills/file-upload/
├── SKILL.md # 技能文档
├── upload.py # Python 脚本
└── .env # 可选配置(如需要)
http://bs3-hb1.internalkkim-mario-clawfile.png → a1b2c3d4_file.pnghttps://bs3-hb1.corp.tencent.com/kim-mario-claw/{uuid}_{filename}
检查项:
boto3 和 botocorebs3-hb1.internal访问返回的 URL,能正常下载/查看即成功。
Bucket 名称包含 temp,建议作为临时存储,重要文件请备份。
Last updated: 2026-03-07