debian-mirror-gitlab/app/uploaders/import_export_uploader.rb

18 lines
332 B
Ruby
Raw Normal View History

2018-11-18 11:00:15 +05:30
# frozen_string_literal: true
2018-11-08 19:23:39 +05:30
class ImportExportUploader < AttachmentUploader
2018-11-18 11:00:15 +05:30
EXTENSION_WHITELIST = %w[tar.gz gz].freeze
2018-11-08 19:23:39 +05:30
2020-03-13 15:44:24 +05:30
def self.workhorse_local_upload_path
File.join(options.storage_path, 'uploads', TMP_UPLOAD_PATH)
end
2018-11-08 19:23:39 +05:30
def extension_whitelist
EXTENSION_WHITELIST
end
def move_to_cache
false
end
end