2018-07-22 00:39:30 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-06-25 13:10:26 +00:00
|
|
|
class ImportExportUploader < AttachmentUploader
|
2018-07-26 10:55:21 +00:00
|
|
|
EXTENSION_WHITELIST = %w[tar.gz gz].freeze
|
2018-06-25 13:10:26 +00:00
|
|
|
|
2020-02-24 21:09:08 +00:00
|
|
|
def self.workhorse_local_upload_path
|
|
|
|
File.join(options.storage_path, 'uploads', TMP_UPLOAD_PATH)
|
|
|
|
end
|
|
|
|
|
2018-06-25 13:10:26 +00:00
|
|
|
def extension_whitelist
|
|
|
|
EXTENSION_WHITELIST
|
|
|
|
end
|
|
|
|
|
|
|
|
def move_to_cache
|
|
|
|
false
|
|
|
|
end
|
|
|
|
end
|