.m4a files should use audio/mp4 MIME type, not audio/mpeg

Created on 1 February 2023, almost 2 years ago
Updated 3 April 2023, over 1 year ago

Problem/Motivation

.m4a files should use the audio/mp4 MIME type, not audio/mpeg.

The apache httpd mime.types file provides this mapping: https://github.com/apache/httpd/blob/trunk/docs/conf/mime.types

As does debian: https://salsa.debian.org/debian/media-types/-/blob/master/mime.types

See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004985

Steps to reproduce

If a file field uses "Audio" as the field formatter, and an m4a file is uploaded, the resulting audio player doesn't work on iOS (Safari or Chrome) due to this markup:

<audio controls="controls">
  <source src="/uploads/sample1.m4a" type="audio/mpeg">
</audio>

But the audio player works with type="audio/mp4"

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

9.5

Component
File systemΒ  β†’

Last updated about 3 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States mfb San Francisco

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024