← 返回
未分类 中文

本地文件上传云端

Uploads a local file to Qiniu Cloud Storage and returns a shareable URL.
将本地文件上传至七牛云存储并返回可分享的链接。
ahsbnb ahsbnb 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 333
下载
💾 0
安装
1
版本
#latest

概述

File to Link Skill

This skill provides a professional and reliable way to take a local file and get a publicly accessible URL for it. It uses Qiniu Kodo Cloud Storage as the backend.

This skill was upgraded from a previous version that used a less reliable, temporary hosting service. It now uses a robust cloud storage provider and correctly handles file paths with special characters (e.g., Chinese, spaces).

SECURITY WARNING

Do not use this skill for sensitive, private, or confidential files.

Files uploaded using this skill may become publicly accessible depending on the bucket's configuration. Use this tool only for non-sensitive data that you are comfortable sharing.

Core Functionality

The skill takes a local file path as input, uploads the file to a pre-configured Qiniu Kodo bucket, and prints the resulting public URL to standard output.

Prerequisites

This skill requires the qiniu Python package to be installed. If it's not present, the skill will fail with an import error.

pip install qiniu

Usage Example

To upload a file and get its link, execute the core Python script with the --file parameter.

# Example usage
& "F:\python 3.10\python.exe" "C:\Users\EDY\.openclaw\skills\file-to-link\scripts\create_link.py" --file "F:\周明慧\资料\clawhub_skill\违规·素材\违规视频1.mp4"

Parameters

  • --file (required): The full, absolute local path to the file you want to upload.

Output

If the upload is successful, the script will print only the URL to its standard output. For example:

http://tbbc24uef.hn-bkt.clouddn.com/%E8%BF%9D%E8%A7%84%E8%A7%86%E9%A2%911.mp4_1772527755

If there is an error (e.g., file not found, Qiniu credentials incorrect), an error message will be printed to standard error, and the standard output will be empty.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 11:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

Free Ride - Unlimited free AI

shaivpidadi
管理OpenClaw的OpenRouter免费AI模型,自动按质量排名模型,配置速率限制备用方案,并更新opencla...
★ 473 📥 79,131
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 31,119
content-creation

Short Video Script Creator

ahsbnb
短视频核心脚本创作,专属参数清晰区分产品信息、口吻、内容及历史文案,批量生成高质量脚本,原生支持PDF/Word。
★ 0 📥 964