Validate attachment content type