← 返回
未分类

OkFile

Upload and publish images, videos, PDFs, and common files to OkFile, or publish a static site folder to a per-site subdomain with directory listing fallback when root index.html is absent.
Upload and publish images, videos, PDFs, and common files to OkFile, or publish a static site folder to a per-site subdomain with directory listing fallback when root index.html is absent.
user_68ec2dc0
未分类 community v1.0.3 3 版本 97222.2 Key: 无需
★ 0
Stars
📥 35
下载
💾 0
安装
3
版本
#latest

概述

OkFile Skill

Official site: https://www.okfile.com/

Overview

OkFile is an agent-first file upload and publish skill.

Use it when an agent needs to:

  • upload images, videos, PDFs, or common files
  • upload a static site folder and publish it to a per-site subdomain
  • rely on automatic shared top-level directory stripping for folder-based site uploads
  • expose a directory listing when a site has no root index.html
  • return a direct link via url
  • return a preview or playback link via playUrl
  • return a published site URL via siteUrl or entryUrl
  • publish anonymously or with an API key
  • handle multipart uploads and retry only missing parts
  • When To Trigger

Trigger this skill when the user asks to:

  • upload a file
  • publish a file and return a public link
  • generate a preview URL for an image, video, or PDF
  • publish a folder as a static website
  • publish a folder that may not contain root index.html
  • upload a large file with multipart support
  • retry incomplete multipart uploads
  • Minimal Flow

  1. POST /api/upload/prepare
  2. PUT uploadUrl or each parts[].uploadUrl
  3. POST /api/upload/complete
  4. optionally GET /api/upload/status/{id}
  5. Static Site Flow

  6. POST /api/site/prepare
  7. upload each file through the normal file upload flow
  8. POST /api/site/complete

Static site behavior:

  • if every uploaded path is under one shared top-level folder, OkFile strips that folder and treats its contents as the site root
  • if root index.html exists, the site root renders that page
  • if root index.html does not exist, the site root renders a directory listing with file name, size, and upload time
  • images and videos open inline from that listing
  • other files should use download links
  • Minimal Example

    curl -X POST "https://www.okfile.com/api/upload/prepare" \
      -H "Content-Type: application/json" \
      --data '{"filename":"photo.jpg","size":12345,"contentType":"image/jpeg","preferredPartSize":5242880}'
    curl -X POST "https://www.okfile.com/api/upload/complete" \
      -H "Content-Type: application/json" \
      --data '{"id":"a3k7m92x"}'
    

    Core Rules

  • send apiKey only to prepare
  • send only id to complete
  • if complete returns missingParts, re-upload only those parts
  • prefer url for direct consumption
  • include playUrl when preview matters
  • prefer siteUrl for the root of a published static site
  • prefer entryUrl for the preferred HTML entry page
  • Endpoints

  • POST /api/upload/prepare
  • PUT uploadUrl or parts[].uploadUrl
  • POST /api/upload/complete
  • GET /api/upload/status/{id}
  • GET /i/{id}
  • GET /i/{id}?play=1
  • POST /api/site/prepare
  • POST /api/site/complete
  • Limits

  • max file size: 500MB
  • multipart starts automatically above the backend threshold
  • anonymous mode is IP rate-limited
  • API key mode is controlled by backend quotas
  • Useful URLs

  • home: https://www.okfile.com/en/
  • upload page: https://www.okfile.com/en/upload/
  • account: https://www.okfile.com/account
  • admin: https://www.okfile.com/admin

版本历史

共 3 个版本

  • v1.0.3 Initial release 当前
    2026-06-06 12:02 安全 安全
  • v1.0.1 补充目录站点发布能力:支持站点子域名、自动裁剪公共顶层目录、无 index.html 时显示目录列表,图片和视频可直接预览,其它文件可下载。
    2026-06-06 00:06 安全 安全
  • v1.0.0 首个公开版本,支持文件直链、预览链接、匿名上传、API Key 和分片上传补传。
    2026-06-01 18:56 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,212 📥 266,273
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,899
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,352 📥 317,835