Class ::xowiki::UploadFile (public)
::nx::Class ::xowiki::UploadFile
Defined in packages/xowiki/tcl/xowiki-uploader-procs.tcl
Class for storing files as xowiki::File instances.
- Testcases:
- No testcase defined.
Source code: :public method store_file {} { # # Store the file provided via instance variables by using the # formfield::file implementation (uses xowiki::File). # 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}] }XQL Not present: Generic, PostgreSQL, Oracle