In my Rails application, I want to allow users to upload image or image files without using Carrierwave. Currently, Carrierwave works great with processing and processing image files, but unfortunately it completely discards files without images. Is there a clean way for a single Carrierwave loader to process both image files and non-image files?
I will include my current bootloader below:
class AssetUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick storage :file def store_dir "uploads/
jklina
source share