move mime type method into FileType enum