Module: CarrierWave::Uploader::ExtensionBlacklist

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

Instance Method Summary collapse

Instance Method Details

#extension_blacklistObject

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

a black list of extensions which are prohibited to be uploaded

Examples

def extension_blacklist
  %w(swf tiff)
end

Basically the same, but using a Regexp:

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


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

def extension_blacklist; end