diff --git a/app/uploaders/picture_uploader.rb b/app/uploaders/picture_uploader.rb index 11f4b4ca..dba60332 100644 --- a/app/uploaders/picture_uploader.rb +++ b/app/uploaders/picture_uploader.rb @@ -84,13 +84,11 @@ class PictureUploader < CarrierWave::Uploader::Base process resize_and_pad: [120, 70] end - # Add a white list of extensions which are allowed to be uploaded. - # For images you might use something like this: - def extension_whitelist + def extension_allowlist %w(jpg jpeg gif png) end - def content_type_whitelist + def content_type_allowlist /image\// end