use gerMimeTypeDetector detectPath instead of getMimeType