Audio content type/m4a changed to audio/x-m4a

Anderson Rodrigues Cavalcante 316 Reputation points
2021-12-22T13:33:58.08+00:00

Hello,

My app has some allowed extensions and one of them is m4a. To check, I'm taking the ContentType from the file and finding it in an array.
For example:

string[ ] Mimetypes = {
"audio/m4a",
"audio/ogg",
"audio/wav",
"audio/mpeg",
"audio/mp3"
};
string mimeType = file.ContentType;
if (!Mimetypes.Contains(mimeType)){
//not allowed
}

This worked 15 days ago, but now the content type of the same m4a file has changed to "audio / x-m4a".
Any idea why this has changed?

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.