Determine file mimetype by content