Skip to content

[Amber] Fix: Bug: File upload rejects WinZip archives due to strict Content-Type MIME validation#1053

Merged
Gkrumbach07 merged 1 commit intomainfrom
amber/issue-1052-bug-file-upload-rejects-winzip-archives-due-to-str
Mar 27, 2026
Merged

[Amber] Fix: Bug: File upload rejects WinZip archives due to strict Content-Type MIME validation#1053
Gkrumbach07 merged 1 commit intomainfrom
amber/issue-1052-bug-file-upload-rejects-winzip-archives-due-to-str

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Automated Fix by Amber Agent

This PR addresses issue #1052 using the Amber background agent.

Changes Summary

  • Action Type: auto-fix
  • Commit: 5804b8d
  • Triggered by: Issue label/command

Pre-merge Checklist

  • All linters pass
  • All tests pass
  • Changes follow project conventions (CLAUDE.md)
  • No scope creep beyond issue description

Reviewer Notes

This PR was automatically generated. Please review:

  1. Code quality and adherence to standards
  2. Test coverage for changes
  3. No unintended side effects

🤖 Generated with Amber Background Agent

Closes #1052

WinZip reports Content-Type as application/x-zip-compressed, but the
file-type magic-byte library detects ZIP archives as application/zip.
Add a ZIP variant allowlist (mirroring the existing JPEG variant handling)
so that all common ZIP MIME synonyms are accepted.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Gkrumbach07 Gkrumbach07 merged commit f1f5bb1 into main Mar 27, 2026
6 checks passed
@Gkrumbach07 Gkrumbach07 deleted the amber/issue-1052-bug-file-upload-rejects-winzip-archives-due-to-str branch March 27, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amber-generated PR created by Amber background agent auto-fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: File upload rejects WinZip archives due to strict Content-Type MIME validation

1 participant