Get content type of file