Class: BulkImports::ExportUploader

Inherits:
ImportExportUploader show all
Defined in:
app/uploaders/bulk_imports/export_uploader.rb

Constant Summary collapse

EXTENSION_ALLOWLIST =
%w[ndjson.gz].freeze

Constants included from Gitlab::FileTypeDetection

Gitlab::FileTypeDetection::DANGEROUS_AUDIO_EXT, Gitlab::FileTypeDetection::DANGEROUS_IMAGE_EXT, Gitlab::FileTypeDetection::DANGEROUS_VIDEO_EXT, Gitlab::FileTypeDetection::PDF_EXT, Gitlab::FileTypeDetection::SAFE_AUDIO_EXT, Gitlab::FileTypeDetection::SAFE_IMAGE_EXT, Gitlab::FileTypeDetection::SAFE_IMAGE_FOR_SCALING_EXT, Gitlab::FileTypeDetection::SAFE_VIDEO_EXT

Constants inherited from GitlabUploader

GitlabUploader::ObjectNotReadyError, GitlabUploader::PROTECTED_METHODS

Instance Attribute Summary

Attributes included from RecordsUploads::Concern

#upload

Method Summary

Methods inherited from ImportExportUploader

#cache_dir, #extension_whitelist, #move_to_cache, #work_dir, workhorse_local_upload_path

Methods included from Gitlab::FileMarkdownLinkBuilder

#markdown_link, #markdown_name

Methods included from Gitlab::FileTypeDetection

#audio?, #dangerous_audio?, #dangerous_embeddable?, #dangerous_image?, #dangerous_video?, #embeddable?, extension_match?, #image?, #image_safe_for_scaling?, #pdf?, #video?

Methods included from ObjectStorage::Concern

#cache!, #delete_migrated_file, #exclusive_lease_key, #exists?, #file_cache_storage?, #file_storage?, #filename, #filename=, #fog_attributes, #fog_credentials, #fog_directory, #fog_public, #migrate!, #object_store, #object_store=, #persist_object_store!, #persist_object_store?, #schedule_background_upload, #store!, #store_dir, #store_dirs, #upload_paths, #use_file, #use_open_file

Methods included from RecordsUploads::Concern

#filename, #readd_upload, #record_upload, #upload_path

Methods included from ObjectStorage::Extension::RecordsUploads

#build_upload, #exclusive_lease_key, #retrieve_from_store!, #schedule_background_upload, #upload=

Methods inherited from GitlabUploader

absolute_path, base_dir, #cache_dir, #cached_size, #exists?, #file_cache_storage?, file_storage?, #filename, #initialize, #local_url, #model_valid?, #move_to_cache, #move_to_store, #open, #relative_path, #replace_file_without_saving!, root, storage_options, #url_or_file_path, #work_dir

Constructor Details

This class inherits a constructor from GitlabUploader