CloudFlare-ImgBed v2.7.9 🥳
Add Features
- File expiry. Set a default lifetime, enter a custom duration, or let uploaders choose. File Management shows when a file expires and lets you extend it or keep it permanently. Access stops at expiry, and files become eligible for cleanup five minutes later. Expiry is off by default. All deployments support manual cleanup. Issue #769 · PR #770 · ImgHub PR #41
- Upload format rules. Choose which file extensions to allow or block, individually or by common format group. The same rules apply to web and API uploads. Issue #751
- Automatic AI tags. Enable automatic tagging in AI Settings to add tags in the background after a successful web or API upload. Supports original images up to 20 MiB and excludes the External channel. Off by default.
- Duplicate scan. On Docker / Node.js deployments using Cloudflare R2, open System Status to find files with identical content. The report suggests keeping the earliest upload and lets you confirm which copies to delete. Issue #765 · PR #768 · ImgHub PR #40
- Frontend downloads. Get the latest web interface from npm using the
assetstag. Docker images identify the matching frontend version so you can download the same files as your deployment. PR #798 - Upload API. Tools that expect a single JSON object can request
responseFormat=objectand read the link fromsrc. The default response remains an array. Issue #776 - Worker deployment. Set the
WRANGLER_CONFIGsecret to retain settings such as workers.dev access and observability across deployments. Issue #779 - API and static asset responses now identify CloudFlare-ImgBed through the
X-ProjectandX-Powered-Byheaders on Pages, Workers, and Node / Docker. The service also reports its deployment platform. PR #794 · ImgHub PR #43
Optimization
- Selecting files in large lists and switching between menu items now feel more responsive. Background images fade in 500 ms with a gentler zoom, and interface transitions respect reduced-motion preferences. Issue #799
- Link settings on the upload page and in File Management now show the configured default URL prefix. Settings tooltips are easier to read on narrow screens.
- Improved frontend test compatibility with newer Node.js versions and expanded regression coverage for single-file, batch, and folder deletion. ImgHub PR #42
Fix Bugs
- The Delete API now distinguishes files actually removed from records that were already missing, including per-file results for batches and folders. A storage failure preserves the file record and is reported to the caller. Issue #510 · Issue #765 · PR #767
- Fixed stale expiry markers in KV after changing a file’s expiry, making it permanent, or deleting it.
- Fixed File Details jumping when switching from landscape to portrait previews. Upload cards now appear together, and AI Settings cards use consistent background blur.
- Fixed overflowing chart legends and uneven card widths on the mobile System Status page. The floating Save button stays circular on narrow screens.
Upgrade Notes
- For existing D1 deployments, run
v2.7.9_add_files_expires_index.sqlto index file expiry queries. Node / Docker applies the SQLite migration automatically on startup. Docs PR #6
Add Features
- 文件有效期。 可设置默认或自定义时长,也可允许上传者自行选择。文件管理中可查看到期时间、延长有效期或改为永久。文件到期后停止访问,5 分钟后可由清理任务删除。此功能默认关闭,各部署方式均可手动清理。 Issue #769 · PR #770 · ImgHub PR #41
- 上传格式限制。 可按扩展名设置白名单或黑名单,也可按常用格式组快速添加。网页和 API 上传使用同一套规则。 Issue #751
- 上传自动打标签。 在智能设置中开启后,网页或 API 上传成功就会在后台识别原图并追加标签。支持不超过 20 MiB 的图片,外链渠道除外,默认关闭。
- 重复文件扫描。 使用 Cloudflare R2 的 Docker / Node.js 部署可在系统状态页按内容查找重复文件。报告建议保留最早上传的一份,其余副本可在确认后删除。 Issue #765 · PR #768 · ImgHub PR #40
- 前端单独下载。 在 npm 选择
assets标签即可获取最新网页文件。使用 Docker 部署时,也可以查看镜像自带的前端版本,下载配套文件。 PR #798 - 上传 API。 需要单个 JSON 对象的第三方工具可使用
responseFormat=object,直接从src读取文件链接。默认仍返回数组。 Issue #776 - Worker 部署。 可通过
WRANGLER_CONFIGSecret 保存 workers.dev 访问、可观测性等设置,重新部署时自动沿用。 Issue #779 - Pages、Workers 和 Node / Docker 的 API 与静态文件响应新增
X-Project和X-Powered-By标识,方便识别图床服务。现在也可区分当前运行在 Pages、Workers 还是 Node.js。 PR #794 · ImgHub PR #43
Optimization
- 改善长文件列表中的勾选响应,缩短菜单和列表高亮的过渡。背景切换缩短至 500 毫秒,缩放更轻柔,并适配系统的减少动态效果设置。 Issue #799
- 上传页和文件管理的链接设置现在可直接查看已配置的默认 URL 前缀,设置项的说明也更方便在窄屏上阅读。
- 改善前端测试在不同 Node.js 版本下的兼容性,并补充单文件、批量及文件夹删除的回归测试。 ImgHub PR #42
Fix Bugs
- 删除 API 现在能区分实际删除和记录原本不存在,批量及文件夹删除也会返回逐项结果。存储端删除失败时会保留记录,并向调用方报告失败。 Issue #510 · Issue #765 · PR #767
- 修复 KV 部署中修改有效期、改为永久或删除文件后,旧的到期标记仍然残留的问题。
- 修复文件详情从横图切换到竖图时预览和信息表格跳动的问题。上传卡片与列表现在同步入场,智能设置卡片的背景模糊效果也已统一。
- 修复手机上系统状态页的图例溢出和卡片宽度不一致,以及设置页悬浮保存按钮变成椭圆的问题。
Upgrade Notes
- 已有 D1 部署建议执行
v2.7.9_add_files_expires_index.sql,为到期文件查询建立索引。Node / Docker 使用的 SQLite 会在启动时自动完成迁移。 Docs PR #6
Full Changelog: v2.7.8...v2.7.9