1 # <a name="Package <code>TWiki::UI::Upload="></a> Package =TWiki::UI::Upload
3 UI delegate for attachment management functions
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>
15 ## <a name="StaticMethod <strong>attach</strong> ($session)"></a> [[StaticMethod]] **attach** `($session)`
17 `upload` command handler. This method is designed to be invoked via the `TWiki::UI::run` method.
19 Attach a file to a topic. CGI parameters are:
21 <table border="1" cellpadding="0" cellspacing="0">
23 <td><code>filename</code></td>
24 <td> Name of attachment </td>
27 <td><code>skin</code></td>
28 <td> Skin(s) to use in presenting pages </td>
32 ## <a name="StaticMethod <strong>upload</strong> ($session)"></a> [[StaticMethod]] **upload** `($session)`
34 `upload` command handler. This method is designed to be invoked via the `TWiki::UI::run` method. CGI parameters, passed in $query:
36 <table border="1" cellpadding="0" cellspacing="0">
38 <td><code>hidefile</code></td>
39 <td> if defined, will not show file in attachment table </td>
42 <td><code>filepath</code></td>
46 <td><code>filename</code></td>
50 <td><code>filecomment</code></td>
51 <td> Comment to associate with file in attachment table </td>
54 <td><code>createlink</code></td>
55 <td> if defined, will create a link to file at end of topic </td>
58 <td><code>changeproperties</code></td>