Skip to content

fix(repair): show why a photo upload failed - #159

Merged
wen-templari merged 1 commit into
mainfrom
fix/photo-upload-error-detail
Oct 18, 2026
Merged

wen-templari merged 1 commit into
mainfrom
fix/photo-upload-error-detail

Conversation

@m1ngsama

Copy link
Copy Markdown
Member

Every non-422 upload failure showed the same "上传失败,请稍后再试", so members could not tell an expired login from a storage outage.

A 401 now asks the member to sign in again, and a 403 says they lack permission. Other failures show the status and server detail, such as "上传失败(500 failed to store photos: OSS AccessDenied),请稍后再试". The storage detail depends on nbtca/Saturday#235.

Name expired logins and missing permissions, and include the status
and server detail for other failures so a storage error can be told
apart without server logs.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying home with  Cloudflare Pages  Cloudflare Pages

Latest commit: fda1c9e
Status: ✅  Deploy successful!
Preview URL: https://43603fcc.fuji-2ku.pages.dev
Branch Preview URL: https://fix-photo-upload-error-detai.fuji-2ku.pages.dev

View logs

@m1ngsama
m1ngsama requested a review from wen-templari October 18, 2026 09:04
@wen-templari
wen-templari merged commit e6a8a8a into main Oct 18, 2026
4 checks passed
@wen-templari
wen-templari deleted the fix/photo-upload-error-detail branch October 18, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants