Skip to content

extensionFromMime 'audio/mpeg' returns 'mpga' instead of 'mp3' #2043

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fstotz opened this issue Mar 17, 2025 · 1 comment
Open

extensionFromMime 'audio/mpeg' returns 'mpga' instead of 'mp3' #2043

fstotz opened this issue Mar 17, 2025 · 1 comment

Comments

@fstotz
Copy link

fstotz commented Mar 17, 2025

When using extensionFromMime for 'audio/mpeg' the returned type is 'mpga' instead of 'mp3'.
On IOS trying to play back a .mpga file it fails.
When using .mp3 it works fine.

@lrhn
Copy link
Member

lrhn commented Mar 18, 2025

Different mime.types files seem to have either mpga or mp3 as first extension for audio/mpeg.

Apache has mpga: https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types

Maybe the order isn't significant, and we should have a separate registry of "preferred extension" that we can use instead of defaulting to the first one in the list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants