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

- (Object) extension_black_list

NilClass, Array

a black list of extensions which are prohibited to be uploaded

Examples

def extension_black_list
  %w(swf tiff)
end

Basically the same, but using a Regexp:

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


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

def extension_black_list; end