Security v1.0.0

r2-proxy

Upload and manage files through Polsia's Cloudflare R2 proxy with authenticated API requests.

agentlevier 更新于 2026-07-02 1 浏览
下载 SKILL

技能说明

Upload and manage files through Polsia's Cloudflare R2 proxy with authenticated API requests.

使用场景

Upload and manage files using Polsia's R2 storage proxy. Files are stored in Cloudflare R2 with automatic CDN delivery.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/r2-proxy
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 15 kB
SKILL.md text/markdown
---
name: r2-proxy
description: "Upload and manage files through Polsia's Cloudflare R2 proxy with authenticated API requests."
---

# R2 Proxy - File Storage

Upload and manage files using Polsia's R2 storage proxy. Files are stored in Cloudflare R2 with automatic CDN delivery.

## Base URL

https://polsia.com/api/proxy/r2

## Authentication

All requests require the POLSIA_API_KEY header. Use Authorization: Bearer process.env.POLSIA_API_KEY

## Upload a File

Endpoint: POST /upload, Content-Type: multipart/form-data

Use node-fetch (not native fetch) for uploads. Use form-data package and pass formData.getHeaders() to avoid missing boundary errors.

## Response Format

Returns: success, file.id, file.key, file.url, file.filename, file.mime_type, file.size, file.created_at

## Allowed File Types

Images: jpeg, png, gif, webp. Videos: mp4, webm, mov. Audio: mp3, wav, ogg. Documents: pdf, docx, xlsx, txt, csv.

## Size Limits

Images: 20MB, Videos: 1GB, Audio: 500MB, Documents: 50MB.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。