none
[openafs-wiki.git] / TWiki / TWikiUIUploadDotPm.mdwn
1 # <a name="Package &lt;code&gt;TWiki::UI::Upload="></a> Package =TWiki::UI::Upload
2
3 UI delegate for attachment management functions
4
5 <div>
6   <ul>
7     <li><a href="#Package =TWiki::UI::Upload="> Package TWiki::UI::Upload</a><ul>
8         <li><a href="#StaticMethod <strong>attach</strong> ($session)"> StaticMethod attach <tt>($session)</tt></a></li>
9         <li><a href="#StaticMethod <strong>upload</strong> ($session)"> StaticMethod upload <tt>($session)</tt></a></li>
10       </ul>
11     </li>
12   </ul>
13 </div>
14
15 ## <a name="StaticMethod &lt;strong&gt;attach&lt;/strong&gt; ($session)"></a> [[StaticMethod]] **attach** `($session)`
16
17 `upload` command handler. This method is designed to be invoked via the `TWiki::UI::run` method.
18
19 Attach a file to a topic. CGI parameters are:
20
21 <table border="1" cellpadding="0" cellspacing="0">
22   <tr>
23     <td><code>filename</code></td>
24     <td> Name of attachment </td>
25   </tr>
26   <tr>
27     <td><code>skin</code></td>
28     <td> Skin(s) to use in presenting pages </td>
29   </tr>
30 </table>
31
32 ## <a name="StaticMethod &lt;strong&gt;upload&lt;/strong&gt; ($session)"></a> [[StaticMethod]] **upload** `($session)`
33
34 `upload` command handler. This method is designed to be invoked via the `TWiki::UI::run` method. CGI parameters, passed in $query:
35
36 <table border="1" cellpadding="0" cellspacing="0">
37   <tr>
38     <td><code>hidefile</code></td>
39     <td> if defined, will not show file in attachment table </td>
40   </tr>
41   <tr>
42     <td><code>filepath</code></td>
43     <td>   </td>
44   </tr>
45   <tr>
46     <td><code>filename</code></td>
47     <td>   </td>
48   </tr>
49   <tr>
50     <td><code>filecomment</code></td>
51     <td> Comment to associate with file in attachment table </td>
52   </tr>
53   <tr>
54     <td><code>createlink</code></td>
55     <td> if defined, will create a link to file at end of topic </td>
56   </tr>
57   <tr>
58     <td><code>changeproperties</code></td>
59     <td>   </td>
60   </tr>
61 </table>