Sha256: 961b52a301dc74b2044c5ddac5ec4041af5da70e0580bf8a9468f4d2f0bdb055

Contents?: true

Size: 349 Bytes

Versions: 44

Compression:

Stored size: 349 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This class deals with uploading record specific images that have more
  # limited content types than the defaults.
  class RecordImageUploader < ImageUploader
    def content_type_allowlist
      %w(image/jpeg image/png)
    end

    def extension_allowlist
      %w(jpeg jpg png)
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
decidim-core-0.27.1 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.26.4 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.27.0 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.26.3 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.27.0.rc2 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.27.0.rc1 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.26.2 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.26.1 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.26.0 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.26.0.rc2 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.26.0.rc1 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.25.2 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.25.1 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.25.0 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.25.0.rc4 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.25.0.rc3 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.25.0.rc2 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.25.0.rc1 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.24.3 app/uploaders/decidim/record_image_uploader.rb
decidim-core-0.24.2 app/uploaders/decidim/record_image_uploader.rb