1CGI.fileFormHandler(3kaya)   Kaya module reference  CGI.fileFormHandler(3kaya)
2
3
4

NAME

6       CGI::fileFormHandler - Set up a file upload form.
7

SYNOPSIS

9       HTML fileFormHandler( Void(a) fn, a dat, Bool prepost=true )
10

ARGUMENTS

12       fn The handler function
13
14       dat Data to pass to the handler function
15
16       prepost  Whether  to run the PreContent and PostContent functions after
17       submitting the form. This defaults to true, but may be useful  to  dis‐
18       able if the form results are not HTML.
19

DESCRIPTION

21       Set  up  a  form capable of uploading files, which when submitted calls
22       fn(dat)
23
24
25       You will need to call WebCommon.allowFileUploads (3kaya) in  your  web‐
26       config function to allow file uploads to be processed.
27

AUTHORS

29       Kaya   standard  library  by  Edwin  Brady,  Chris  Morris  and  others
30       (kaya@kayalang.org). For further information see http://kayalang.org/
31

LICENSE

33       The Kaya standard library is free software;  you  can  redistribute  it
34       and/or  modify  it  under  the  terms  of the GNU Lesser General Public
35       License (version 2.1 or any later version) as  published  by  the  Free
36       Software Foundation.
37
39       CGI.uploadButton (3kaya)
40
41
42
43Kaya                             December 2010      CGI.fileFormHandler(3kaya)
Impressum