Determine file name extension from contentType