Checked that array_map('trim', explode()) is used consistently at all relevant code points and adapted the code if not. To clarify that step: Joomla core uses array_map('trim', explode()) nearly at all code points when reading these parameters. I took it over where not.
I haven't included field upload_mime_illegal because I couldn't find any usage in core (#38280).
Testing Instructions
Go to mediamanager component > Options.
Change configuration options.
Test uploads if settings are respected.
& code review.
BEFORE applying this Pull Request
See that some fields are really hard to configure if you use higher window zoom and/or smaller devices:
Expected result AFTER applying this Pull Request
Nothing changed but the UI view.
Easier to read and configure.
Even spaces and/or newlines are possible because of consistent usage of array_map('trim', explode()) in core now.
Change some configuration settings and test if uploads still work like configured even if you add spaces or newlines after commas in textarea. Commas as separators are still mandatory as before!
I have tested this item✅ successfully on 5373646
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38281.