fix(file-uploader): align accept parsing with native file input#22134
fix(file-uploader): align accept parsing with native file input#22134nehaaprasaad wants to merge 2 commits intocarbon-design-system:mainfrom
Conversation
|
All contributors have signed the DCO. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for v11-carbon-web-components ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Please update to use the pull request template. |
You need to sign the DCO as well. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22134 +/- ##
==========================================
- Coverage 95.09% 95.07% -0.03%
==========================================
Files 541 541
Lines 45179 45179
Branches 6537 6482 -55
==========================================
- Hits 42965 42954 -11
- Misses 2085 2096 +11
Partials 129 129
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
I have read the DCO document and I hereby sign the DCO. |
Closes #22111
Fixes multi-value accept parsing in file uploader components.
Changelog
New
None.
Changed
Parse accept with spaces and commas.
Normalize native input accept to comma-separated tokens.
Removed
None.
Testing / Reviewing
Test accept="image/jpeg image/png".
Test accept="image/jpeg,image/png".
Confirm unsupported files are not added.
Confirm single-value and extension-only still work.
PR Checklist
[ ] Reviewed every line of the diff
[ ] Updated documentation and storybook examples
[ ] Wrote passing tests that cover this change
[ ] Addressed any impact on accessibility (a11y)
[ ] Tested for cross-browser consistency
[ ] Validated that this code is ready for review and status checks should pass