- Publicity: Public Only All
file-procs.tcl
File procs
- Location:
- packages/acs-templating/tcl/file-procs.tcl
Procedures in this file
- template::data::transform::file (private)
- template::data::validate::file (public)
- template::util::file::get_property (public)
- template::util::file_transform (public)
Detailed information
template::data::transform::file (private)
template::data::transform::file element_ref
- Parameters:
- element_ref (required)
- Returns:
- the list { file_name temp_file_name content_mime_type }.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
template::data::validate::file (public)
template::data::validate::file value_ref message_ref
Validate the value in the file widget. In particular: - make sure value is a list of 3 elements - ensure character cleanup has been performed - ensure tmpfile is safe
- Parameters:
- value_ref (required)
- message_ref (required)
- Returns:
- boolean
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- validate_file, template_widget_file, fs_upload_a_notmpfile
template::util::file::get_property (public)
template::util::file::get_property what file_list
Return a property from a file datatype structure.
- Parameters:
- what (required)
- Which property to return (filename, etc).
- file_list (required)
- The file datatype structure.
- Returns:
- The requested property from the file datatype structure.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- template_widget_file
template::util::file_transform (public)
template::util::file_transform element_id
Helper proc, which gets AOLserver/NaviServer's variables from the query/form, and returns it as a 'file' datatype value.
- Parameters:
- element_id (required)
- Returns:
- the list { file_name temp_file_name content_mime_type }.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- template_widget_file, fs_upload_a_notmpfile