Welcome to mirror list, hosted at ThFree Co, Russian Federation.

import_export_uploader.rb « uploaders « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b0e6464f5b130029a876c60514f4838cdec43cc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class ImportExportUploader < AttachmentUploader
  EXTENSION_WHITELIST = %w[tar.gz gz].freeze

  def self.workhorse_local_upload_path
    File.join(options.storage_path, 'uploads', TMP_UPLOAD_PATH)
  end

  def extension_whitelist
    EXTENSION_WHITELIST
  end

  def move_to_cache
    false
  end
end