tools icon indicating copy to clipboard operation
tools copied to clipboard

Don't use `x-*` MIME types when possible

Open Abion47 opened this issue 1 year ago • 1 comments

MIME types that have the x-* prefix are by definition non-standard extension types. Many formats that used to use these types no longer do as they have become official MIME types recognized by the IANA, but the mime package is still using the x-* mime type on many of them. This can cause problems as many APIs will support the standard form but not the non-standard extension form, so they should be updated where appropriate.

Here are some examples:

audio/x-aiff => audio/aiff
audio/x-wav => audio/wav (or) audio/vnd.wav

Abion47 avatar Sep 20 '24 16:09 Abion47

Wondering if we should just base our data off https://github.com/patrickmccallum/mimetype-io/blob/master/src/mimeData.json or similar...hrm...

kevmoo avatar Sep 28 '24 00:09 kevmoo