infer content type from contents of file instead of its file name ending