Skip to content

Release v2.7.5 - 2026-07-15

Latest

Choose a tag to compare

@MarSeventh MarSeventh released this 15 Jul 03:58

CloudFlare-ImgBed v2.7.5 🥳

Add Features

  • Added IP geolocation query configuration under System Settings → Security Settings → Upload Management, supporting enabling/disabling queries, configuring custom API request parameters, and using the {ip} placeholder to pass upload IPs.
  • Supported configuring JSON response field paths for IP geolocation queries; the backend concatenates results in order of fields and writes them into the file metadata UploadAddress.
  • Added a new floating bottom batch operation bar in the admin panel's multi-select state, displaying the selected count and providing quick actions such as copy, download, move, tag management, blacklist, whitelist, delete, and clear selection.
  • Redesigned the shortcut toolbar in the bottom-right corner of the upload page into an expandable capsule layout; upload settings can be opened directly, and other actions expand upwards.

Optimization

  • Added a general-purpose Worker Cache to the Workers deployment adaptation layer based on business response Cache-Control: public GET/HEAD responses are preferentially read from cache, and on cache miss, the original business route is executed and cached according to public, max-age/s-maxage.
  • Optimized Range requests to preferentially match existing full cache; on cache miss, the business response is transparently transmitted without caching 206 partial content to prevent incomplete segments from polluting the full file cache.
  • Switched the upload page title font to Pacifico, and optimized the title colors, hover underline, and crayon-writing animations for both light and dark modes.
  • Optimized the top toolbar of the upload list, the bottom-right shortcut toolbar, and their mobile layouts on the upload page, enhancing the lightweight feel and accessibility of action entry points.
  • Moved the 'Select All on This Page' entry point in the admin panel to the left of the directory bar, and softened the directory bar's top spacing and card preview hover animations.
  • Added async decoding and off-screen rendering delay for image previews in the admin panel, significantly reducing stuttering when a page contains multiple high-resolution images.
  • Temporarily disabled card and list item hover effects during drag-to-select in the admin panel, reducing visual distraction during selection.
  • Decoupled the admin panel batch operation bar into an independent component for easier maintenance and future styling iterations.
  • Consolidated the admin panel top bar page switcher into an expandable interaction under the current option; users can hover or click to view and switch between File Management, User Management, System Settings, and the Upload Page.
  • Optimized the page switcher's hover expansion stability, dark menu background, active item indicator, and mobile spacing in the admin panel to align better with the overall UI style.
  • Added independent theme variables to the page switcher, supporting a light candy-colored and pink-blue gradient for the active item, while improving color texture in dark mode.
  • Added a subtle zoom-in effect during multi-background carousel transitions, making the background switching feel more natural.
  • Refined visual details of the upload page title, toolbar, and shortcut capsule, unifying light/dark hovers, borders, shadows, and mobile edge-snapping layouts.
  • Unified the directory bar, checkboxes, list/card view switch, and breadcrumb interactions in the admin panel into a lighter glassmorphism style, and extracted a reusable checkbox component.
  • Changed the admin panel's mobile card view to a two-column layout, making the list view, pagination, loading skeletons, and action buttons more compact overall.
  • Supported horizontal swiping in the content area for page navigation on mobile, while hiding the pagination prev/next buttons to reduce screen clutter on small devices.
  • Unified the page switcher's panel, option groups, arrows, and hover sliders with a synchronized transition of ~300ms, improving animation coherence while retaining the glassmorphic expand effect.
  • Adjusted the empty-directory prompt in the admin panel to the center of the content area, and unified the spacing between the User Management table and the top bar on both desktop and mobile.

Fix Bugs

  • Fixed an issue where the top page switcher's hover options in the admin panel occasionally flickered or stuttered during image, table, or chart loading; refactored the expansion state to be explicitly managed, and applied a unified option animation group and shared hover indicator.

Security

  • Changed the cache headers for the directory tree and tag autocomplete APIs to private to preserve browser short-caching while preventing authenticated endpoints from entering shared Workers caches.
  • Enhanced destination URL validation for the fetchRes endpoint. #625
  • Upgraded dependencies to improve overall security. #629

Add Features

  • 系统设置 → 安全设置 → 上传管理新增 IP 归属地查询配置,支持开启/关闭查询、配置自定义 API 请求参数,并使用 {ip} 占位符传递上传 IP
  • IP 归属地查询支持配置 JSON 响应字段路径,后端会按照字段顺序拼接结果并写入文件元数据 UploadAddress
  • 管理端多选状态新增底部悬浮批量操作栏,展示已选数量,并提供复制、下载、移动、标签管理、黑名单、白名单、删除和清除选择等快捷操作
  • 上传页右下角快捷工具栏改为可展开胶囊布局,上传设置可直接打开,其余操作向上展开

Optimization

  • Workers 部署适配层新增基于业务响应 Cache-Control 的通用 Worker Cache:公开 GET/HEAD 响应会优先从缓存读取,未命中时执行原业务路由并按 public, max-age/s-maxage 写入缓存
  • Range 请求会优先尝试命中已有完整缓存,未命中时透传业务响应且不缓存 206 片段,避免部分内容污染完整文件缓存
  • 上传页标题字体切换为 Pacifico,并优化标题色彩、hover 下划线和蜡笔书写动效在深浅色模式下的表现
  • 优化上传页上传列表顶部工具栏、右下角快捷工具栏和移动端位置,提升操作入口的轻量感和可达性
  • 管理端全选本页入口移动到目录栏左侧,目录栏顶部间距和卡片预览 hover 幅度调整得更轻柔
  • 管理端图片预览增加异步解码和屏外渲染延迟,降低一页存在多张高分辨率图片时的卡顿
  • 管理端框选多选过程中会暂时屏蔽卡片和列表项 hover 效果,减少框选时的视觉干扰
  • 管理端批量操作栏抽离为独立组件,便于后续维护和样式迭代
  • 管理端顶栏页面切换入口整合为当前选项展开式交互,hover 或点击即可查看并切换文件管理、用户管理、系统设置和上传页面
  • 优化管理端页面切换器的 hover 展开稳定性、深色菜单背景、当前项底板和移动端间距,使其与整体界面风格更统一
  • 页面切换器新增独立主题变量,当前项支持轻盈的糖果色与粉蓝轻渐变效果,并优化深色模式下的色彩质感
  • 多张背景图轮播时增加轻微放大拉近效果,让背景切换更自然
  • 优化上传页标题、工具栏和快捷胶囊的视觉细节,统一深浅色 hover、边框、阴影和移动端贴边布局
  • 管理端目录栏、多选框、列表/卡片视图切换和面包屑交互统一为更轻量的玻璃质感样式,并抽离通用多选框组件
  • 管理端移动端卡片视图改为双列布局,列表视图、分页区、加载骨架和操作按钮整体更紧凑
  • 管理端移动端支持在内容区左右滑动翻页,并隐藏分页左右按钮,减少小屏幕遮挡
  • 页面切换器的面板、选项组、箭头和 hover 滑块统一为约 300ms 的同步过渡,在保留毛玻璃展开效果的同时改善动画连贯性
  • 管理端当前目录为空提示调整到内容区域中央,并统一用户管理表格在桌面端和移动端与顶部栏之间的间距

Fix Bugs

  • 修复管理端在图片、表格或图表加载期间,顶部页面切换器的 hover 选项偶发闪烁和命中抖动的问题;展开状态改为显式管理,并使用统一选项动画组和共享 hover 底板

Security

  • 目录树和标签自动补全接口的缓存头改为 private,保留浏览器短缓存能力,避免鉴权接口进入 Workers 共享缓存
  • 增强 fetchRes 接口的目标 URL 合法性检测 #625
  • 升级依赖,提升安全性 #629