Sha256: f4d24ca1e01f01ad37589e4a6a292a41765e3370fb371dfe5cc9596d8c793917

Contents?: true

Size: 566 Bytes

Versions: 17

Compression:

Stored size: 566 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This class deals with saving data portability Zip Files to App
  class DataPortabilityUploader < CarrierWave::Uploader::Base
    # Override the directory where uploaded files will be stored.
    # def store_dir
    #   default_path = "tmp/data-portability/"
    #   File.join(Rails.root, default_path)
    # end

    def store_dir
      default_path = "tmp/data-portability/"

      return File.join(Decidim.base_uploads_path, default_path) if Decidim.base_uploads_path.present?
      default_path
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
decidim-core-0.18.1 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.17.2 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.18.0 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.17.1 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.16.1 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.17.0 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.16.0 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.15.2 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.15.1 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.15.0 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.14.4 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.14.3 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.14.2 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.14.1 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.13.1 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.13.0 app/uploaders/decidim/data_portability_uploader.rb
decidim-core-0.13.0.pre1 app/uploaders/decidim/data_portability_uploader.rb