Add MIME type restriction to system upload interface#26646
Merged
AlexGaillard merged 8 commits intomainfrom Feb 16, 2026
Merged
Conversation
3 tasks
HZooly
requested changes
Feb 13, 2026
Member
HZooly
left a comment
There was a problem hiding this comment.
Nice work! Some changes if you agree for reducing potential dead code and improve typing.
…ion-to-system-upload-interface
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #26646 +/- ##
=======================================
Coverage 64.74% 64.74%
=======================================
Files 2186 2186
Lines 145076 145091 +15
Branches 10348 10349 +1
=======================================
+ Hits 93931 93943 +12
- Misses 51145 51148 +3
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Scope
NOTE: This is part 1 of 3 for this feature
What's changed:
Potential Risks / Drawbacks
Tested Scenarios
# FILES_MIME_TYPE_ALLOW_LIST=audio/*,image/*then try to upload a file type not in this list, it should be greyed out in the browser file inputReview Notes / Questions
Checklist
Fixes CMS-1679