*FileAttachment*

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.
	* 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 <nop>FileAttachment table.
	* To download: Click on the file in <nop>FileAttachment table.

*FileAttachment table*

Is a table that looks like this:

<table cellpadding=0 border=0 cellspacing=4>
<tr bgcolor="#99CCCC">
  <th>FileAttachment:
  </th><th> Action:
  </th><th> Size:
  </th><th> Date:
  </th><th> Who:
  </th><th> Comment:
  </th>
</tr>
<tr>
  <td> (attached file)
  </td><td> 
	(view, update, add)
  </td><td> (file size)
  </td><td> (upload date)
  </td><td> (uploded by)
  </td><td> (file comment)
  </td>
</tr>
</table>

*Action* is:
	* *view:* View file. This is the same as clicking on the filename.
	* *update:* Update file that is already attached.
	* *add:* Add a new attachment.

*Remarks*
	* Once a file is attached it can be referenced in the topic by =%<nop>ATTACHURL%/{filename}= . Example:
		* Attach file: =Sample.txt=
		* Edit topic and write text: =%<nop>ATTACHURL%/Sample.txt=
		* Text is shown as: %ATTACHURL%/Sample.txt , i.e. it is a link.
	* GIF and JPG images can be attached and shown in the text like this:
		* Attach file: =Smile.gif=
		* Edit topic and write text: =%<nop>ATTACHURL%/Smile.gif=
		* Text is shown as: %ATTACHURL%/Smile.gif , i.e. it shows up as an image.
	* It is not possible to delete attached files with the current TWiki implementation. Contact %WIKIWEBMASTER% if you need to delete files.
<!--TWikiAttachment--><p>
<table cellpadding="0" border="0" cellspacing="4">
<tr bgcolor="#99CCCC">
  <th>
Main.FileAttachment:
  </th><th>
Action:
  </th><th>
Size:
  </th><th>
Date:
  </th><th>
Who:
  </th><th>
Comment:
  </th>
</tr><TwkNextItem>
<tr>
  <td valign="top">
<TwkFileIcon><IMG src="%PUBURL%/icn/txt.gif" width="16" hight="16" align="top"></TwkFileIcon>&nbsp;<a href="%PUBURL%/%WEB%/%TOPIC%/Sample.txt"><TwkFileName>Sample.txt</TwkFileName></a>
<TwkFilePath> <TwkData value="C:\Temp\Sample.txt"> </TwkFilePath>
  </td><td valign="top">
<TwkAction><a href="../../viewfile/Main/FileAttachment?filename=Sample.txt">view</a>&nbsp;<a href="../../attach/Main/FileAttachment?filename=Sample.txt">update</a></TwkAction>
  </td><td valign="top" align="right">
<TwkFileSize>30</TwkFileSize>
  </td><td valign="top">
<TwkFileDate>26&nbsp;Mar&nbsp;1999&nbsp;-&nbsp;04:05</TwkFileDate>
  </td><td valign="top">
<TwkFileUser> Main.PeterThoeny</TwkFileUser>
  </td><td valign="top">
<TwkFileComment>Just a sample</TwkFileComment>
  </td>
</tr><TwkNextItem>
<tr>
  <td valign="top">
<TwkFileIcon><IMG src="%PUBURL%/icn/bmp.gif" width="16" hight="16" align="top"></TwkFileIcon>&nbsp;<a href="%PUBURL%/%WEB%/%TOPIC%/Smile.gif"><TwkFileName>Smile.gif</TwkFileName></a>
<TwkFilePath> <TwkData value="C:\Temp\Smile.gif"> </TwkFilePath>
  </td><td valign="top">
<TwkAction><a href="../../viewfile/Main/FileAttachment?filename=Smile.gif">view</a>&nbsp;<a href="../../attach/Main/FileAttachment?filename=Smile.gif">update</a></TwkAction>
  </td><td valign="top" align="right">
<TwkFileSize>94</TwkFileSize>
  </td><td valign="top">
<TwkFileDate>26&nbsp;Mar&nbsp;1999&nbsp;-&nbsp;04:05</TwkFileDate>
  </td><td valign="top">
<TwkFileUser> Main.PeterThoeny</TwkFileUser>
  </td><td valign="top">
<TwkFileComment>Smiley face</TwkFileComment>
  </td>
</tr><TwkNextItem>
<tr>
  <td valign="top">
  </td><td valign="top">
<TwkAction><a href="../../attach/Main/FileAttachment">add</a><TwkAction>
  </td><td valign="top" align="right">
  </td><td valign="top">
  </td><td valign="top">
  </td><td valign="top">
  </td>
</tr>
</table><!--TWikiAttachment-->