fix(cni): only allow jpg and png because of buggy pdf watermarking

This commit is contained in:
simon lehericey 2022-11-21 17:53:29 +01:00
parent b744522235
commit fe35a8a6e7

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