1 # <a name="Linking to a file attachment"></a> Linking to a file attachment
3 One can create a link to a file attachment using one of the following [[TWikiVariables]], `%ATTACHURL%` or `%PUBURL%`.
5 `%ATTACHURL%` is the full URL for attachments in the current topic. For example:
7 `%ATTACHURL%/image.gif`
9 To link to a file attachment in another topic, use the `%PUBURL%` variable. For example:
11 `%PUBURL%/%WEB%/OtherTopic/image.gif`
13 [[See More Tips...|Main/TWikiTipsOfTheDay]]
15 -- TWiki:Main.PaulineCheung - 29 Jan 2005