Graph returning incorrect MIME type for MKV video files

TimGels-7519 6 Reputation points
2021-05-22T14:16:01.01+00:00

Hello everyone,

I am a maintainer for a small open source application that uses the Microsoft Graph API to interact with OneDrive. Recently it stopped working correctly for some file types. After some quick debugging it seems that Microsoft Graph now returns application/octet-stream as mimetype of an MKV file instead of video/x-matroska. mp4 containers seem to be unaffected and still return video/mp4. I had a quick look at the changelog and can't find such change.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,113 questions
{count} vote

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.