ad_return_string_as_file (public)
ad_return_string_as_file -string string -filename filename \ -mime_type mime_type
Defined in packages/acs-tcl/tcl/defs-procs.tcl
Return a string as the content of a file
- Switches:
- -string
(required)- Content of the file to be sent back
- -filename
(required)- Name of the file to be returned
- -mime_type
(required)- Mime Type of the file being returned
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: ns_set put [ns_conn outputheaders] "Content-Disposition" "attachment; filename=\"$filename\"" ns_return 200 $mime_type $stringXQL Not present: Generic, PostgreSQL, Oracle