get prim mime type from file