Audio content type/m4a changed to audio/x-m4a
Anderson Rodrigues Cavalcante
316
Reputation points
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)
3,041 questions
Developer technologies | C#
11,583 questions
Sign in to answer