• Publicity: Public Only All

xowiki-uploader-procs.tcl

XoWiki - Uploader procs

This file defines the following Objects and Classes: ::xowiki::Upload[i], ::xowiki::UploadFile[i], ::xowiki::UploadFileIconified[i], ::xowiki::UploadPhotoForm[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.3.2.6 2022/08/24 15:57:30 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.

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

Testcases:
No testcase defined.

Class ::xowiki::UploadFile (public)

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

Class for storing files as xowiki::File instances.

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

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.

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

Testcases:
No testcase defined.

Class ::xowiki::UploadPhotoForm (public)

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

Class for storing files as instances of photo.form.

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

Testcases:
No testcase defined.

xowiki::Upload method store_file (public)

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

Abstract method.

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

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).

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

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.

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

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.

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

Testcases:
No testcase defined.
[ show source ]