Method: Decidim::ImageUploader#extension_allowlist
- Defined in:
- app/uploaders/decidim/image_uploader.rb
#extension_allowlist ⇒ Object
Add a white list of extensions which are allowed to be uploaded. For images you might use something like this:
28 29 30 |
# File 'app/uploaders/decidim/image_uploader.rb', line 28 def extension_allowlist Decidim.organization_settings(model).upload_allowed_file_extensions_image end |