Sha256: 2874dae7cbd31ccfa9e17d36af7898d203b58112207c7bed80b3fd860ae36128

Contents?: true

Size: 1.15 KB

Versions: 24

Compression:

Stored size: 1.15 KB

Contents

# frozen_string_literal: true

# AttachmentUploader Carrierwave
class ImgFileUploader < CarrierWave::Uploader::Base
  # Include RMagick or MiniMagick support:
  include CarrierWave::RMagick
  include CarrierWave::ImageOptimizer

  # include CarrierWave::MiniMagick


  # Override the directory where uploaded files will be stored.
  # This is a sensible default for uploaders that are meant to be mounted:
  def store_dir
    "keppler_frontend"
  end

  # Provide a default URL as a default if there hasn't been a file uploaded:

  # Process files as they are uploaded:
  # process :scale => [200, 300]
  #
  # def scale(width, height)
  #   # do something
  # end

  # Create different versions of your uploaded files:
  # version :thumb do
  #   process :resize_to_fit => [50, 50]
  # end

  # Add a white list of extensions which are allowed to be uploaded.
  # For images you might use something like this:
  # def extension_white_list
  #   %w(jpg jpeg gif png)
  # end

  # Override the filename of the uploaded files:
  # Avoid using model.id or version_name here, see uploader/store.rb for details
  # def filename
  #   "something.jpg" if original_filename
  # end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
keppler-2.1.22 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.21 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.20 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.19 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.18 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.17 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.16 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.15 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.14 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.13 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.12 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.11 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.10 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.9 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.8 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.7 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.6 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.5 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.4 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb
keppler-2.1.3 installer/core/rockets/keppler_frontend/app/uploaders/img_file_uploader.rb