From 52b78a51d57844f5db557dc0d7af1d95fae45bf0 Mon Sep 17 00:00:00 2001 From: Corinne Durrmeyer Date: Tue, 25 Jun 2024 16:34:05 +0200 Subject: [PATCH] Restrict document selection to authorized types only --- app/views/support/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/support/index.html.haml b/app/views/support/index.html.haml index 0c54a1c4e..532cbab8e 100644 --- a/app/views/support/index.html.haml +++ b/app/views/support/index.html.haml @@ -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(',')