Move getMimeType method into expFile since it's pretty generic and we've already altered it
(cherry picked from commit 4126259)