Merge pull request #8085 from demarches-simplifiees/revert_pdf_in_cni

fix(cni): only allow jpg and png because of buggy pdf watermarking
This commit is contained in:
LeSim 2022-11-22 10:17:25 +01:00 committed by GitHub
commit 959b770c52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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