Skip to content

Navigation Menu

Sign in
Sign up

fix(templates): handle upload errors properly - #6076

Draft
elzody wants to merge 1 commit into
main from
fix/global-template-upload
Draft

fix(templates): handle upload errors properly #6076
elzody wants to merge 1 commit into
main from
fix/global-template-upload

Conversation

@elzody

@elzody elzody commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

When trying to upload a global template that failed (e.g. file was too large), it would try to detect the MIME type of the file even if it didn't exist, causing a 500 Internal Server Error response. Instead, we should check for errors first, and then try to detect the MIME type only after we know there are no errors.

Assisted-by: ClaudeCode:claude-opus-5

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

When trying to upload a global template that failed (e.g. file was too
large), it would try to detect the MIME type of the file even if it
didn't exist, causing a 500 Internal Server Error response. Instead, we
should check for errors first, and then try to detect the MIME type only
after we know there are no errors.
Assisted-by: ClaudeCode:claude-opus-5
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev>
@elzody elzody self-assigned this Sep 11, 2026
@elzody elzody added the 3. to review Ready to be reviewed label Sep 11, 2026
elzody marked this pull request as draft September 11, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@juliusknorr juliusknorr Awaiting requested review from juliusknorr juliusknorr is a code owner

At least 1 approving review is required to merge this pull request.

Labels

3. to review Ready to be reviewed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Unable to upload global templates

1 participant

AltStyle によって変換されたページ (->オリジナル) /