* 禁用 OSS 非必需校验尾部,改用精确会话前缀逐对象清理 * 保护上传终态与分享事务,清理失败保留会话并支持安全重试 * 统一下载响应头,兼容旧下载器并防止文件名注入 * 限流改用单调时钟并限制 IP 记录,缓存模板与静态资源策略 * 统一 ORM 初始化与异常处理,新增查询索引及 SQLite 性能参数 * 固定 uvloop/httptools,统一 Docker keep-alive 与内存回收配置 * 同步版本与升级文档,补充 OSS、清理、缓存及数据库回归验证
FileCodeBox
Share files like picking up a package
A lightweight, modern, self-hosted file sharing service. No account required—upload, share the passcode, and retrieve.
Live Demo · Documentation · 简体中文
Start with one command
docker run -d --restart unless-stopped \
-p 12345:12345 \
-v ./data:/app/data \
-e APP_ENV=production \
-e LOG_LEVEL=warning \
--log-opt max-size=10m \
--log-opt max-file=3 \
--name filecodebox \
lanol/filecodebox:2.5.6 # x-release-please-version
Open http://localhost:12345 and complete first-run setup. Pin a version in production; latest tracks the newest stable release.
Simple, yet capable
| Share instantly Files and text in one flow, with drag, paste, batch, and chunked uploads. |
Expire on your terms Expire by time or retrieval count, keep forever, and clean up automatically. |
Own your data Local, S3, OneDrive, WebDAV, and OpenDAL storage on infrastructure you control. |
From sharing to administration
![]() |
![]() |
![]() |
![]() |
![]() |
FastAPI Vue 3 SQLite Docker S3 WebDAV Dark Mode
Learn more
- Getting started · deployment, setup, and upgrades
- Storage · local and object storage
- Security · rate limits, sessions, and access protection
- API reference · upload, retrieval, and administration
- Frontend source · the active 2024 theme
Related projects
If you enjoy self-hosted “box” tools, also check out this project from the same author:
BokeBox · Private AI Podcast Box
Drop in videos, links, or drafts, and get listen-worthy personal podcasts with custom host persona and voice.
Contributing
Issues and pull requests are welcome. FileCodeBox is released under LGPL-3.0.
Disclaimer
Use FileCodeBox only for lawful file and text sharing. Do not upload, store, or distribute illegal, infringing, or unauthorized content. Operators are responsible for deployment security, data compliance, and content moderation.
If FileCodeBox helps you, consider leaving a Star.




