Moved the code that retrieves the mimeType of a Media File to a utility method.

We can't live without mimeType.