Skip to content

fix: add PDF MIME fallback for uploads#16530

Open
BboyGT wants to merge 1 commit intopayloadcms:mainfrom
BboyGT:codex/pdf-mime-fallback
Open

fix: add PDF MIME fallback for uploads#16530
BboyGT wants to merge 1 commit intopayloadcms:mainfrom
BboyGT:codex/pdf-mime-fallback

Conversation

@BboyGT
Copy link
Copy Markdown

@BboyGT BboyGT commented May 7, 2026

Summary

  • adds .pdf to the upload MIME fallback map as �pplication/pdf
  • adds a regression test for PDF fallback behavior
  • keeps unknown extensions falling back to ext/plain

Fixes #16485.

Testing

  • Ran git diff --check
  • Not run locally: dependencies are not installed in this fresh checkout

@BboyGT
Copy link
Copy Markdown
Author

BboyGT commented May 7, 2026

Happy to adjust the test or placement if you prefer a different convention. I’m also happy to keep helping with small upload/admin reliability fixes like this.

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.

PDF missing from upload MIME fallback map

1 participant