360 Secure SkillHub
360 安全技能中心

file share to filebin.net

核心功能为将用户本地文件上传至filebin.net,生成文件直链和bin页面两种公开分享链接。典型场景包括用户请求上传文件、分享文件链接、提及上传至filebin.net等。输入为用户提供的本地文件,输出为对应分享链接。需注意文件上传后公开可见,7天自动过期;bin ID需15-26字符,大于100MB的大文件可能被平台拒绝。

goog
goog
热度 48.08
最近更新 2026-05-11 17:40:23
分类:自动化依赖:代码执行 / 第三方 API / 读写文件应用场景:自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add file-io
Metadata
name
file-io
description
Upload local files to filebin.net for quick sharing. Use when the user asks to upload a file, share a file via link, host a file, or says "upload to filebin" / "put on filebin.net". NOT for downloading or general file management.

File Upload via filebin.net

Upload local files to filebin.net so the user gets a shareable link.

Rules

  • Bin ID must be 15–26 characters (shorter → "the bin is too short"; longer → "the bin is too long").
  • Filebin bins auto-expire after 7 days.

Steps

  1. Find the file provided by user Locate the target file in the ~/.openclaw/workspace/.
  2. Generate bin ID.
  import uuid
  u = uuid.uuid4().hex  # hex string (32 chars)
  bin_id = f"my-upload{u[-6:]}"
  print(bin_id)
  1. Upload via curl (PowerShell):

    curl -si -X POST -H "Content-Type: application/octet-stream" -T "<FILEPATH>" "https://filebin.net/$binId/<FILENAME>"
    
  2. Extract the URL from the response JSON. Construct:

    • File direct link: https://filebin.net/<binId>/<filename>
    • Bin page: https://filebin.net/<binId>

Notes

  • user should not upload a private file because file uploaded will be public.
  • If upload returns 400 "the bin is too short/long", adjust bin ID length and retry.
  • For large files (>100 MB), warn the user that filebin may reject them.