detect media mime-type