Module: CarrierWave::Uploader::ExtensionDenylist

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/carrierwave/uploader/extension_denylist.rb

Instance Method Summary collapse

Instance Method Details

#extension_denylistObject

NilClass, String, Regexp, Array[String, Regexp]

a deny list of extensions which are prohibited to be uploaded

Examples

def extension_denylist
  %w(swf tiff)
end

Basically the same, but using a Regexp:

def extension_denylist
  [/swf/, 'tiff']
end


34
35
# File 'lib/carrierwave/uploader/extension_denylist.rb', line 34

def extension_denylist
end