Module: CamaleonCms::RuntimeUploaderConcern

Extended by:
ActiveSupport::Concern
Includes:
UploaderContentSecurity, UploaderImageProcessing, UploaderPathSecurity, UploaderPipeline, UploaderSupport
Included in:
CamaleonController, RuntimeStateConcern
Defined in:
app/controllers/concerns/camaleon_cms/runtime_uploader_concern.rb

Overview

Uploader entry point for controllers (mixed into CamaleonCms::CamaleonController and re-exported through RuntimeStateConcern). The implementation lives in the shared modules below, which CamaleonCms::UploaderHelper includes as well, so the two entry points cannot drift. Only cama_upload_url_error is controller-specific.

Constant Summary

Constants included from UploaderImageProcessing

UploaderImageProcessing::SVG_EXT_PATTERN

Constants included from UploaderContentSecurity

UploaderContentSecurity::COMPRESSED_MARKUP_EXTENSIONS, UploaderContentSecurity::GZIP_MAGIC, UploaderContentSecurity::HTML_MODE_EXTENSIONS, UploaderContentSecurity::MARKUP_EXTENSIONS, UploaderContentSecurity::MAX_DECOMPRESSED_MARKUP_BYTES, UploaderContentSecurity::SCRIPT_EXTENSIONS

Method Summary

Methods included from UploaderSupport

#cama_file_path_to_url, #cama_uploader, #cama_url_to_file_path, #slugify, #slugify_folder, #uploader_verify_name

Methods included from UploaderImageProcessing

#cama_crop_image, #cama_resize_and_crop, #cama_resize_upload, #cama_uploader_generate_thumbnail

Methods included from UploaderPipeline

#cama_tmp_upload, #cama_uploader_human_size, #cama_uploader_t, #upload_file

Methods included from UploaderPathSecurity

#cama_allowed_upload_roots, #cama_base64_decoded_size, #cama_canonical_upload_path, #cama_extra_upload_roots, #cama_private_upload_mode?, #cama_private_upload_root, #cama_purge_staged_file, #cama_upload_failure, #path_within?, #same_host?, #same_site_url?, #site_url_path, #strip_locale_prefix

Methods included from UploaderContentSecurity

#cama_trusted_for_unfiltered_upload?, #content_unsafe?, #file_content_unsafe?, #svg_upload?