diff --git a/CRM/Core/BAO/UFGroup.php b/CRM/Core/BAO/UFGroup.php index 6987ebbff22e..0c9d57caa2f1 100644 --- a/CRM/Core/BAO/UFGroup.php +++ b/CRM/Core/BAO/UFGroup.php @@ -1894,6 +1894,9 @@ public static function buildProfile( } } elseif (substr($fieldName, 0, 9) === 'image_URL') { + if (!isset($attributes['accept'])) { + $attributes['accept'] = 'image/png, image/jpeg, image/gif'; + } $form->add('file', $name, $title, $attributes, $required); $form->addUploadElement($name); }