Contact image not displaying on contact summary - Drupal 8
Overview
Images uploaded to a contact record are not displayed on the contact summary when using Drupal 8 as the CMS.
Reproduction steps
- Click on Contacts -> New Individual.
- Enter basic information and upload an image to the 'Browse/Upload Image' field
- Save the contact
- View the contact's summary
Current behaviour
The browser's default missing image icon is dispayed.
Expected behaviour
The uploaded image should be displayed.
Environment information
PHP 7.3.20-1 Ubuntu 18.04 Apache/2.4.29 (Ubuntu) Drupal 8.9.3 CiviCRM 5.28
Comments
The image is uploaded to the server and is readable by the web server. The image upload directory in Administer > System settings > Directories is set to [civicrm.files]/custom, which is where the images have been uploaded to.