返回 Skill 列表
extension
分类: 其它无需 API Key

file share to filebin.net

将本地文件上传至 filebin.net 以便快速分享,适用于用户请求上传文件、通过链接分享文件、托管文件或说“上传到 filebin”。

person作者: googhubclawhub

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.