From 0d211f4ccbbefda0ce8e59dbd8f698c493b1418e Mon Sep 17 00:00:00 2001 From: Xavier J Date: Tue, 22 Mar 2016 10:20:26 +0100 Subject: [PATCH] Fix white list cerfa and piece_justificative uploader --- app/uploaders/cerfa_uploader.rb | 2 +- app/uploaders/piece_justificative_uploader.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/uploaders/cerfa_uploader.rb b/app/uploaders/cerfa_uploader.rb index 70622a9c8..a0fe6b7d5 100644 --- a/app/uploaders/cerfa_uploader.rb +++ b/app/uploaders/cerfa_uploader.rb @@ -39,7 +39,7 @@ class CerfaUploader < CarrierWave::Uploader::Base # Add a white list of extensions which are allowed to be uploaded. # For images you might use something like this: def extension_white_list - %w(pdf doc docxxls xlsx ppt pptx odt ods odp) + %w(pdf doc docx xls xlsx ppt pptx odt ods odp) end # Override the filename of the uploaded files: diff --git a/app/uploaders/piece_justificative_uploader.rb b/app/uploaders/piece_justificative_uploader.rb index 597a39086..76a1269e4 100644 --- a/app/uploaders/piece_justificative_uploader.rb +++ b/app/uploaders/piece_justificative_uploader.rb @@ -39,7 +39,7 @@ class PieceJustificativeUploader < CarrierWave::Uploader::Base # Add a white list of extensions which are allowed to be uploaded. # For images you might use something like this: def extension_white_list - %w(pdf doc docxxls xlsx ppt pptx odt ods odp) + %w(pdf doc docx xls xlsx ppt pptx odt ods odp) end # Override the filename of the uploaded files: