richtext::ckeditor5::ckfinder::return_file (public)
richtext::ckeditor5::ckfinder::return_file \ [ -revision_id revision_id ] [ -user_id user_id ]
Defined in packages/richtext-ckeditor5/tcl/ckfinder-procs.tcl
Return the file with the specified revision_id to the user. The user must have at read permissions to obtain the file (image).
- Switches:
- -revision_id (optional)
- -user_id (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: permission::require_permission -party_id $user_id -object_id $revision_id -privilege read set file_path [content::revision::get_cr_file_path -revision_id $revision_id] set mime_type [db_string get_mime_type { select mime_type from cr_revisions where revision_id = :revision_id }] ad_returnfile_background 200 $mime_type $file_pathXQL Not present: Generic, PostgreSQL, Oracle