Linking to a file attachment

A link to a file attachment may be created in a few different ways:
  1. If using the WYSIWYG editor (TinyMCEPlugin), use the attach (paperclip) toolbar button to select an attachment on the "Insert link to attachment" tab and then press the "Insert link" button
  2. Use the %ATTACHURL% macro (see VarATTACHURL). This is the full URL for attachments in the current topic. For example:
    %ATTACHURL%/image.gif
  3. To link to a file attachment in another topic, use the %PUBURL% macro (see VarPUBURL). For example:
    %PUBURL{"foswiki-badge.png" web="%SYSTEMWEB%" topic="ProjectLogos"}%
    foswiki-badge.png

See More Tips...
Topic revision: r1 - 15 Jul 2015, ProjectContributor - This page was cached on 17 May 2019 - 20:03.

THE UNIVERSITY OF UTAHSPENCER S. ECCLES HEALTH SCIENCES LIBRARY
10 N. 1900 E. SALT LAKE CITY, UT 84112 • 801.581.7535
Ideas, requests, problems regarding Eccles Health Sciences Library wiki? Send feedback