Module: CarrierWave::Uploader::ExtensionWhitelist

Extended by:
ActiveSupport::Concern
Included in:
Base
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


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

def extension_white_list; end