• Publicity: Public Only All

xowiki-uploader-procs.tcl

XoWiki - Uploader procs

This file defines the following Objects and Classes: ::xowiki::UploadFile[i], ::xowiki::UploadFileIconified[i], ::xowiki::UploadPhotoForm[i], ::xowiki::Upload[i]

Location:
packages/xowiki/tcl/xowiki-uploader-procs.tcl
Created:
2016-03-21
Author:
Gustaf Neumann
CVS Identification:
$Id: xowiki-uploader-procs.tcl,v 1.6 2024/09/11 06:15:56 gustafn Exp $

Procedures in this file

Detailed information

Class ::xowiki::Upload (public)

 ::nx::Class ::xowiki::Upload[i]

Abstract class for upload handlers. Subclasses define concreate behavior. The method "store_file" should either return 201 for successful uploads or 200 for ignored cases.

Testcases:
No testcase defined.

Class ::xowiki::UploadFile (public)

 ::nx::Class ::xowiki::UploadFile[i]

Class for storing files as xowiki::File instances.

Testcases:
No testcase defined.

Class ::xowiki::UploadFileIconified (public)

 ::nx::Class ::xowiki::UploadFileIconified[i]

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.

Testcases:
No testcase defined.

Class ::xowiki::UploadPhotoForm (public)

 ::nx::Class ::xowiki::UploadPhotoForm[i]

Class for storing files as instances of photo.form.

Testcases:
No testcase defined.

xowiki::Upload method store_file (public)

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

Abstract method.

Testcases:
No testcase defined.

xowiki::UploadFile method store_file (public)

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

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

Testcases:
No testcase defined.

xowiki::UploadFileIconified method store_file (public)

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

Store files and return a thumbnail rendering when successful.

Testcases:
No testcase defined.

xowiki::UploadPhotoForm method store_file (public)

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

Ignore everything, which does not have an image/* mime type.

Testcases:
No testcase defined.
[ show source ]