Merge pull request #8022 from mfo/US/titre-identite-en-pdf

amelioration(Champ.titre-d-identite): ajout du support pour les .pdf
This commit is contained in:
mfo 2022-11-08 17:05:23 +01:00 committed by GitHub
commit 618967c054
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']
ACCEPTED_FORMATS = ['image/png', 'image/jpeg', 'application/pdf']
validates :piece_justificative_file, content_type: ACCEPTED_FORMATS, size: { less_than: FILE_MAX_SIZE }
def main_value_name