Class: Decidim::DataPortabilityUploader

Inherits:
ApplicationUploader show all
Defined in:
app/uploaders/decidim/data_portability_uploader.rb

Overview

This class deals with saving data portability Zip Files to App

Instance Method Summary collapse

Methods inherited from ApplicationUploader

#downloader, #manipulate!, #provider

Instance Method Details

#store_dirObject

Override the directory where uploaded files will be stored.



7
8
9
10
11
12
13
# File 'app/uploaders/decidim/data_portability_uploader.rb', line 7

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

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

  default_path
end