- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xowiki::UploadFile
::xowiki::UploadFile create ... \Class for storing files as xowiki::File instances.
[ -content_type content_type ] \
[ -file_name file_name ] \
[ -parent_object parent_object ] \
[ -tmpfile tmpfile ]
Defined in packages/xowiki/tcl/xowiki-uploader-procs.tcl
Class Relations
::nx::Class create ::xowiki::UploadFile \ -superclass ::xowiki::UploadMethods (to be applied on instances)
store_file (scripted, public)
<instance of xowiki::UploadFile> store_fileStore the file provided via instance variables by using the formfield::file implementation (uses xowiki::File).
- Testcases:
- No testcase defined.
set f [::xowiki::formfield::file new -name upload -object ${:parent_object}] set file_object [$f store_file -file_name ${:file_name} -content_type ${:content_type} -package_id [${:parent_object} package_id] -parent_id [${:parent_object} item_id] -object_name file:${:file_name} -tmpfile ${:tmpfile} -publish_date_cmd {;} -save_flag ""] $f destroy return [list status_code 201 message created file_object $file_object file_name ${:file_name}]
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables