add content_type and size errors to base attribute