From fe35a8a6e71406a890947938d0c19a47357e2da6 Mon Sep 17 00:00:00 2001 From: simon lehericey Date: Mon, 21 Nov 2022 17:53:29 +0100 Subject: [PATCH] fix(cni): only allow jpg and png because of buggy pdf watermarking --- app/models/champs/titre_identite_champ.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/champs/titre_identite_champ.rb b/app/models/champs/titre_identite_champ.rb index 139c204fe..6ed55ebe4 100644 --- a/app/models/champs/titre_identite_champ.rb +++ b/app/models/champs/titre_identite_champ.rb @@ -21,7 +21,7 @@ # class Champs::TitreIdentiteChamp < Champ FILE_MAX_SIZE = 20.megabytes - ACCEPTED_FORMATS = ['image/png', 'image/jpeg', 'application/pdf'] + ACCEPTED_FORMATS = ['image/png', 'image/jpeg'] validates :piece_justificative_file, content_type: ACCEPTED_FORMATS, size: { less_than: FILE_MAX_SIZE } def main_value_name