%3 ::xowiki::UploadPhotoForm ::xowiki::UploadPhotoForm store_file ::xowiki::Upload ::xowiki::Upload store_file ::xowiki::UploadPhotoForm->::xowiki::Upload ::xowiki::UploadFile ::xowiki::UploadFile store_file ::xowiki::UploadFile->::xowiki::Upload ::xowiki::UploadFileIconified ::xowiki::UploadFileIconified store_file ::xowiki::UploadFileIconified->::xowiki::UploadFile

Class ::xowiki::UploadFile

::xowiki::UploadFile[i] create ... \
           [ -content_type content_type ] \
           [ -file_name file_name ] \
           [ -parent_object parent_object ] \
           [ -tmpfile tmpfile ]

Class for storing files as xowiki::File instances.
Defined in packages/xowiki/tcl/xowiki-uploader-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::xowiki::Upload[i]
  • subclass: ::xowiki::UploadFileIconified[i]
::nx::Class create ::xowiki::UploadFile \
     -superclass ::xowiki::Upload

Methods (to be applied on instances)

  • store_file (scripted, public)

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

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

    Partial Call Graph (max 5 caller/called nodes):
    %3

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