• Publicity: Public Only All

file-procs.tcl

File procs

Location:
packages/acs-templating/tcl/file-procs.tcl

Procedures in this file

Detailed information

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

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.

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 }.

Testcases:
template_widget_file, fs_upload_a_notmpfile
[ show source ]