xowiki::UploadFile method store_file (public)

 <instance of xowiki::UploadFile[i]> store_file

Defined in packages/xowiki/tcl/xowiki-uploader-procs.tcl

Store the file provided via instance variables by using the formfield::file implementation (uses xowiki::File).

Testcases:
No testcase defined.
Source code:
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
[ hide source ] | [ make this the default ]
Show another procedure: