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

Class ::xowiki::UploadFileIconified

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

Refinement of ::xowiki::UploadFile but returning content rended by a special renderer. There is e.g. such a renderer defined in xowf for the online exam.
Defined in packages/xowiki/tcl/xowiki-uploader-procs.tcl

Class Relations

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

Methods (to be applied on instances)

  • store_file (scripted, public)

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

    Store files and return a thumbnail rendering when successful.

    Testcases:
    No testcase defined.
    set d [next]
    if {[dict get $d status_code] in {200 201}} {
      return [list status_code 201 message [${:parent_object} render_thumbnails $d]]
    }
    return {status_code 500 message "something wrong"}