← 返回
未分类 Key 中文

Qiniu Upload

Upload local files to Qiniu Cloud and return a publicly accessible URL (or signed private URL). Use when the user wants to upload a local file path to Qiniu,...
将本地文件上传至七牛云存储,返回公开访问URL(或带签名的私有URL)。适用于用户希望上传本地文件路径到七牛云的场景。
chenggongdu chenggongdu 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 1
Stars
📥 353
下载
💾 0
安装
1
版本
#latest

概述

Qiniu Upload

Use this skill when a task needs a local file turned into a Qiniu-hosted URL.

Required environment variables

  • QINIU_ACCESS_KEY
  • QINIU_SECRET_KEY
  • QINIU_BUCKET
  • QINIU_DOMAIN

Optional:

  • QINIU_ZONE - one of z0, z1, z2, na0, as0
  • QINIU_PRIVATE_BUCKET - true to emit signed private URLs by default
  • QINIU_PRIVATE_EXPIRE_SECONDS - default expiry for private URLs

Safety rules

  • Never hardcode Qiniu credentials.
  • Fail fast if any required environment variable is missing.
  • Prefer returning both key and final url.
  • For local files, verify the path exists before upload.

Primary command

Run the Node script:

node scripts/upload.js --file-path "E:\\audio\\sample.mp3" --prefix audio

Optional flags:

  • --private - return a signed private URL
  • --expire-seconds 3600 - private URL expiry
  • --prefix audio - object key prefix
  • --key my/custom/name.mp3 - explicit object key
  • --json - machine-friendly JSON only

Output contract

The script returns JSON like:

{
  "success": true,
  "bucket": "example-bucket",
  "key": "audio/uuid.mp3",
  "url": "https://cdn.example.com/audio/uuid.mp3",
  "isPrivate": false,
  "size": 12345,
  "mimeType": "audio/mpeg",
  "sourcePath": "E:\\audio\\sample.mp3"
}

Domain and access caveat

Some Qiniu domains may sit behind auth or anti-leeching. Upload success does not automatically guarantee anonymous public fetch success. If downstream services need to fetch the object, verify the returned URL is externally accessible, or use private signed URLs / a proper public CDN domain.

Chaining to other skills

After upload succeeds, pass the returned url into downstream skills such as an Aliyun speech transcription workflow.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-03 09:55 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Aliyun Speech Transcriber

chenggongdu
使用阿里云语音服务转录公开可访问的音频或视频URL。当用户需要通过阿里云DashScope进行语音转文字时使用。
★ 1 📥 550
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 330,823
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 80 📥 182,948