If we try to upload an .heic file for a contact image, we get this error: "Image could not be uploaded due to invalid type extension."

Is there a way to enable Civi to accept and display heic/heif images?

1 Answer 1


This is hard-coded at https://github.com/civicrm/civicrm-core/blob/c8a7531ec9785161f4cdc6b1d51e9ff01989db47/CRM/Contact/BAO/Contact.php#L1180

But I'm sure core would be open to updating that list. You could make either a github PR or lab ticket at https://lab.civicrm.org.

  • I added it there. Unfortunately, same error.
    – Paul B
    Feb 18, 2022 at 18:01
  • Oh I misunderstood where you were uploading it. Will update answer.
    – Demerit
    Feb 18, 2022 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.