Conversation
Until now S3 and R2 could be configured, probed and used as a migration target, but uploads, reads and deletes always went to the local volume. An Owner can now set a verified S3 or R2 provider as the active storage: - New originals, thumbnails, edited versions and Live Photo clips are written to the bucket; permanent deletion removes the remote objects. - Reads prefer a local copy and fall back to the configured buckets, so images uploaded before a switch keep working without migration. - The storage console gets a "设为当前存储" action, and saving provider settings no longer resets the active storage to local. - The sidebar, overview, upload workbench, storage console, onboarding and system status follow the active storage, and system checks probe the active bucket. - Metadata and backups stay local; the docs describe the new behaviour. Tests cover upload, serve, switch-back and purge for both S3 and R2. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01URmSTaHbqzQS9fEoXkvAZL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
动机
目前 S3 / R2 可以配置、探测和作为迁移目标,但上传、读取和删除始终走本地卷。对磁盘小的 VPS 来说,能直接把图片写进对象存储会实用很多。这个功能已经在我的 fork 上线运行。
改动
验证
pnpm check全部通过(70 个测试 + 构建)。