none
[openafs-wiki.git] / TWiki / FileAttachment.mdwn
1 ## <a name="Dev Reorg Note:"></a> Dev Reorg Note:
2
3 The latest version of FileAttachments includes attachments under revision control. It's in the 01 Sep 2001 TWiki release.
4
5 - Current Dev topic: [[AttachmentsUnderRevisionControl]]
6
7 ----
8
9 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.
10
11 - 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.
12 - To download: Click on the file in the FileAttachment table.
13
14 **FileAttachment table**
15
16 Is a table that looks like this:
17
18 <table border="0" cellpadding="0" cellspacing="4">
19   <tr bgcolor="#99CCCC">
20     <th>FileAttachment: </th>
21     <th> Action: </th>
22     <th> Size: </th>
23     <th> Date: </th>
24     <th> Who: </th>
25     <th> Comment: </th>
26   </tr>
27   <tr>
28     <td> (attached file) </td>
29     <td> (view, update, add) </td>
30     <td> (file size) </td>
31     <td> (upload date) </td>
32     <td> (uploaded by) </td>
33     <td> (file comment) </td>
34   </tr>
35 </table>
36
37 **Action** is:
38
39 - **view:** View file. This is the same as clicking on the filename.
40 - **update:** Update file that is already attached.
41 - **add:** Add a new attachment.
42
43 **Remarks**
44
45 - Once a file is attached it can be referenced in the topic by `%ATTACHURL%/{filename}` . Example:
46   - Attach file: `Sample.txt`
47   - Text is shown as: <http://www.dementia.org/twiki//view/%WEB%/%TOPIC%/Sample.txt> , i.e. it is a link.
48 - GIF and JPG images can be attached and shown in the text like this:
49   - Attach file: `Smile.gif`
50   - Edit topic and write text: `%ATTACHURL%/Smile.gif`
51   - Text is shown as: ![Smile.gif](http://www.dementia.org/twiki//view/%WEB%/%TOPIC%/Smile.gif) , i.e. it shows up as an image.
52 - It is not possible to delete attached files with the current TWiki implementation. Contact if you need to delete files.