yzget - #636
Open
yzget wants to merge 937 commits into
Open
Conversation
fix(s3/storage): 恢复因合并异常丢失的S3 CDN代码,导致功能失效的问题
When urlPrefix is configured in page settings, the upload API now returns a `publicUrl` field in addition to the existing `src` field, allowing clients to directly access files via the configured public domain (e.g. R2 custom domain) without needing to reconstruct the URL.
Chunked upload (uploadLargeFileToTelegram) and chunk merge responses now also include publicUrl field when urlPrefix is configured, matching the behavior of regular uploads.
feat: 上传 API 返回值新增 publicUrl 字段
On a Cloudflare Worker, fetch() to the Worker's own zone bypasses the public edge and routes directly to origin, skipping the Worker itself. This deployment has no separate origin, so every WebDAV self-call (/api/manage/list, /file, /upload, /api/manage/delete) instantly returns HTTP 522. The global_fetch_strictly_public compatibility flag routes same-zone subrequests through Cloudflare's front door so they re-enter the Worker normally. Set the flag in both the committed wrangler.toml (manual deploy) and the generate-toml.js template (GitHub Actions regenerates the toml on CI). This is an alternative to the in-process dispatch fix on fix/webdav-522-inprocess-dispatch; pick one. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…al-fetch-flag Enable global_fetch_strictly_public to fix WebDAV 522 (Worker deploy)
… and support MOVE
…revent FileAlreadyExistsException in clients
fix(webdav): 修复 WebDAV 兼容性问题并支持标准的 MOVE 方法
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.
No description provided.