richtext::ckeditor4::ckfinder::return_file (public)
richtext::ckeditor4::ckfinder::return_file \ [ -revision_id revision_id ] [ -user_id user_id ]
Defined in packages/richtext-ckeditor4/tcl/ckfinder-procs.tcl
Return the file with the specified revision_id to the user. The user must have at least "read" permissions to obtain the file.
- Switches:
- -revision_id (optional)
- -user_id (optional)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: ns_log notice ================================= ns_log notice "permission::require_permission -party_id $user_id -object_id $revision_id -privilege read" 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