none
[openafs-wiki.git] / TWiki / FileAttachment.mdwn
1 **FileAttachment**
2
3 Each topic can have files attached to it. This is similar to an e-mail attachment. Just use your browser to upload or download a file.
4
5 - To upload: Click on the Attach link at the bottom of each page. A form is shown where you can browse for a file and upload it. The uploaded file will show up in the FileAttachment table.
6 - To download: Click on the file in the FileAttachment table.
7
8 **FileAttachment table**
9
10 Is a table that looks like this:
11
12 <table border="0" cellpadding="0" cellspacing="4">
13   <tr bgcolor="#99CCCC">
14     <th>FileAttachment: </th>
15     <th> Action: </th>
16     <th> Size: </th>
17     <th> Date: </th>
18     <th> Who: </th>
19     <th> Comment: </th>
20   </tr>
21   <tr>
22     <td> (attached file) </td>
23     <td> (view, update, add) </td>
24     <td> (file size) </td>
25     <td> (upload date) </td>
26     <td> (uploded by) </td>
27     <td> (file comment) </td>
28   </tr>
29 </table>
30
31 **Action** is:
32
33 - **view:** View file. This is the same as clicking on the filename.
34 - **update:** Update file that is already attached.
35 - **add:** Add a new attachment.
36
37 **Remarks**
38
39 - Once a file is attached it can be referenced in the topic by `%ATTACHURL%/{filename}` . Example:
40   - Attach file: `Sample.txt`
41   - Text is shown as: <http://www.dementia.org/twiki//view/%WEB%/%TOPIC%/Sample.txt> , i.e. it is a link.
42 - GIF and JPG images can be attached and shown in the text like this:
43   - Attach file: `Smile.gif`
44   - Edit topic and write text: `%ATTACHURL%/Smile.gif`
45   - Text is shown as: ![Smile.gif](http://www.dementia.org/twiki//view/%WEB%/%TOPIC%/Smile.gif) , i.e. it shows up as an image.
46 - It is not possible to delete attached files with the current TWiki implementation. Contact if you need to delete files.
47
48 <table border="0" cellpadding="0" cellspacing="4">
49   <tr bgcolor="#99CCCC">
50     <th>[[TWiki/FileAttachment]]: </th>
51     <th> Action: </th>
52     <th> Size: </th>
53     <th> Date: </th>
54     <th> Who: </th>
55     <th> Comment: </th>
56   </tr>
57   <tr>
58     <td><twknextitem> </twknextitem></td>
59   </tr>
60   <tr>
61     <td valign="top"><twkfileicon><img align="top" hight="16" src="http://www.dementia.org/twiki//view/icn/txt.gif" width="16" /></twkfileicon> <a href="http://www.dementia.org/twiki//view/%WEB%/%TOPIC%/Sample.txt"><twkfilename>Sample.txt</twkfilename></a> <twkfilepath> <twkdata value="C:\DATA\Sample.txt"> </twkdata></twkfilepath></td>
62     <td valign="top"><twkaction><a href="http://www.dementia.org/twiki//viewfile/%WEB%/%TOPIC%?filename=Sample.txt">view</a> <a href="http://www.dementia.org/twiki//attach/%WEB%/%TOPIC%?filename=Sample.txt">update</a></twkaction></td>
63     <td align="right" valign="top"><twkfilesize>30</twkfilesize></td>
64     <td valign="top"><twkfiledate>22 Jul 2000 - 19:37</twkfiledate></td>
65     <td valign="top"><twkfileuser> [[Main/PeterThoeny]]</twkfileuser></td>
66     <td valign="top"><twkfilecomment>Just a sample</twkfilecomment></td>
67   </tr>
68   <tr>
69     <td><twknextitem> </twknextitem></td>
70   </tr>
71   <tr>
72     <td valign="top"><twkfileicon><img align="top" hight="16" src="http://www.dementia.org/twiki//view/icn/bmp.gif" width="16" /></twkfileicon> <a href="http://www.dementia.org/twiki//view/%WEB%/%TOPIC%/Smile.gif"><twkfilename>Smile.gif</twkfilename></a> <twkfilepath> <twkdata value="C:\DATA\Smile.gif"> </twkdata></twkfilepath></td>
73     <td valign="top"><twkaction><a href="http://www.dementia.org/twiki//viewfile/%WEB%/%TOPIC%?filename=Smile.gif">view</a> <a href="http://www.dementia.org/twiki//attach/%WEB%/%TOPIC%?filename=Smile.gif">update</a></twkaction></td>
74     <td align="right" valign="top"><twkfilesize>94</twkfilesize></td>
75     <td valign="top"><twkfiledate>22 Jul 2000 - 19:38</twkfiledate></td>
76     <td valign="top"><twkfileuser> [[Main/PeterThoeny]]</twkfileuser></td>
77     <td valign="top"><twkfilecomment>Smiley face</twkfilecomment></td>
78   </tr>
79   <tr>
80     <td><twknextitem> </twknextitem></td>
81   </tr>
82   <tr>
83     <td valign="top">
84     </td>
85     <td valign="top"><twkaction><a href="http://www.dementia.org/twiki//attach/%WEB%/%TOPIC%">add</a><twkaction> </twkaction></twkaction></td>
86     <td align="right" valign="top">
87     </td>
88     <td valign="top">
89     </td>
90     <td valign="top">
91     </td>
92     <td valign="top">
93     </td>
94   </tr>
95 </table>