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):
%3 packages/richtext-ckeditor5/tcl/ckfinder-init.tcl packages/richtext-ckeditor5/ tcl/ckfinder-init.tcl richtext::ckeditor5::ckfinder::return_file richtext::ckeditor5::ckfinder::return_file packages/richtext-ckeditor5/tcl/ckfinder-init.tcl->richtext::ckeditor5::ckfinder::return_file ad_returnfile_background ad_returnfile_background (public) richtext::ckeditor5::ckfinder::return_file->ad_returnfile_background content::revision::get_cr_file_path content::revision::get_cr_file_path (public) richtext::ckeditor5::ckfinder::return_file->content::revision::get_cr_file_path db_string db_string (public) richtext::ckeditor5::ckfinder::return_file->db_string permission::require_permission permission::require_permission (public) richtext::ckeditor5::ckfinder::return_file->permission::require_permission

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_path
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: