Read about our upcoming Code of Conduct on this issue

import_export_uploader.rb 224 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class ImportExportUploader < AttachmentUploader
  EXTENSION_WHITELIST = %w[tar.gz].freeze

  def extension_whitelist
    EXTENSION_WHITELIST
  end

  def move_to_store
    true
  end

  def move_to_cache
    false
  end
end