Restrict document selection to authorized types only

This commit is contained in:
Corinne Durrmeyer 2024-06-25 16:34:05 +02:00
parent e71d330143
commit 52b78a51d5
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -66,7 +66,7 @@
= t('.notice_pj_product')
%p.notice.hidden{ data: { 'contact-type-only': Helpscout::FormAdapter::TYPE_AUTRE } }
= t('.notice_pj_other')
= file_field_tag :piece_jointe, class: 'fr-upload'
= file_field_tag :piece_jointe, class: 'fr-upload', accept: '.jpg, .jpeg, .png, .pdf'
= hidden_field_tag :tags, @tags&.join(',')