Add content_type attribute to attachment resource.