Get extension type from mime type of uploaded file