storage
Skill36 starsChanged 8 months agoMITView on GitHub
当用户想加文件上传、上传图片、上传文档、配置云存储时使用 — 添加文件上传和存储功能
6 other projects use a version of this.
Adopted by
Most recently taken up by
- frankxai/Starlight-Intelligence-Systemtheir own version, first seen Sep 6, 2026
- blyatiful1/ultrawebtheir own version, first seen Sep 2, 2026
- butterbase-ai/butterbase-skillstheir own version, first seen Jun 10, 2026
- moasq/ios-dev-agenttheir own version, first seen May 26, 2026
- beriberikix/zephyr-agent-skillstheir own version, first seen May 18, 2026
- ajshedivy/ibmi-agent-skillstheir own version, first seen Mar 15, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- butterbase-ai/butterbase-skills★ 533same name
- beriberikix/zephyr-agent-skills★ 68same name
- frankxai/Starlight-Intelligence-System★ 10same name
- ajshedivy/ibmi-agent-skills★ 4same name
- moasq/ios-dev-agent★ 4same name
- blyatiful1/ultraweb★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11ySkill
- apiSkill
- authSkill
- blogSkill
- changelogSkill
- code-reviewSkill
- commitSkill
- compareSkill
- componentSkill
- conceptSkill
- copySkill
- dashboard-adminSkill
- databaseSkill
- debugSkill
- deploySkill
- docSkill
- emailSkill
- envSkill
- explainSkill
- fixSkill
- formSkill
- gitsetupSkill
- install-pluginsSkill
- landingSkill
- learnSkill
- migrateSkill
- paymentSkill
- perfSkill
- readme-genSkill
- refactorSkill
- responsiveSkill
- scriptSkill
- seoSkill
- setupSkill
- starterSkill
- testSkill
The file
Files
添加文件上传
帮用户为项目添加文件上传和存储功能。
步骤
1. 了解需求
问题 1:上传什么文件
用户需要上传什么?
- 图片(头像、产品图)
- 文档(PDF、Word)
- 通用文件 这决定了需要的文件验证和处理逻辑。
问题 2:存储方案
文件存在哪里?
- 本地存储(最简单,适合开发和小项目)
- Cloudflare R2(便宜,兼容 S3 API,推荐生产用)
- AWS S3(成熟稳定,企业首选)
- Supabase Storage(如果已经用 Supabase) 不确定就先用本地存储,后面再换。
2. 生成上传功能
后端:
- 上传接口 — 接收文件,验证类型和大小
- 文件验证 — 限制文件类型(白名单)、大小上限
- 存储逻辑 — 保存到选定的存储位置
- 文件 URL — 返回可访问的文件地址
前端:
- 上传组件 — 拖拽上传 + 点击选择
- 上传进度 — 进度条显示
- 预览 — 图片类文件支持上传前预览
- 错误提示 — 文件太大、格式不对等
安全措施:
- 文件名随机化,防止路径穿越
- 文件类型服务端二次验证
- 设置合理的大小上限
3. 测试
上传一个测试文件,确认可以上传、预览和下载。
文件上传功能已添加。 如果需要图片裁剪或压缩,告诉我。
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

