Module: CarrierWave::Uploader::ExtensionWhitelist

Defined in:
lib/carrierwave/uploader/extension_whitelist.rb

Instance Method Summary collapse

Instance Method Details

#extension_white_listObject

Override this method in your uploader to provide a white list of extensions which are allowed to be uploaded.

Returns

NilClass, Array

a white list of extensions which are allowed to be uploaded

Examples

def extension_white_list
  %w(jpg jpeg gif png)
end


25
# File 'lib/carrierwave/uploader/extension_whitelist.rb', line 25

def extension_white_list; end