Skip to content

Commit

Permalink
IBX-9412: Fixed allowed extensions in ezimage field (#1447)
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 authored Feb 21, 2025
1 parent 4c8b3b7 commit 366afe0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% set max_file_size = min(form.parent.vars.value.fieldDefinition.validatorConfiguration.FileSizeValidator.maxFileSize * 1024 * 1024, max_upload_size|round) %}

{% if mime_types is defined %}
{% set attr = attr|merge({'data-allowed-file-types': mime_types|join(',') }) %}
{% set attr = attr|merge({'data-allowed-file-types': mime_types|join(','), 'accept': mime_types|join(',') }) %}
{% else %}
{% set attr = attr|merge({'accept': 'image/*' }) %}
{% endif %}
Expand Down

0 comments on commit 366afe0

Please sign in to comment.