<div dir="ltr">On pageĀ <a href="http://www.pmwiki.org/wiki/PmWiki/UploadVariables" target="_blank">http://www.pmwiki.org/wiki/PmWiki/UploadVariables</a><div><br></div><div>the following variables are defined<br>
<div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;font-size:0.85em;font-family:'Lucida Console','Andale Mono','Courier New',Courier,monospace;line-height:1.2em;border:none;padding:0.5em;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);background-color:rgb(250,250,250)">$UploadUrlFmt

$UploadDir

$UploadPrefixFmt</pre><pre style="margin-top:0px;margin-bottom:0px;border:none;padding:0.5em;word-wrap:break-word"><font face="arial, helvetica, sans-serif"><br>But they are not exposed to PmWiki markup, i.e. don't work on the website.<br><br>Are there any variables that are?<br><br><br>On a second note (for NZTopo), can someone suggest some exemplar code that would left me validate, in a recipe, that a supplied filename (as a parameter) exists in a upload directory.<br><br>It would have to cope with per page/per group attachments, and the standard pmwiki variants<br><br>filename.ext<br><br>group.page/filename.ext<br><br><br>etc.<br><br><br>Ideally if the file does not exist it would exhibit an upload link.<br><br><br>Or is there an internal PmWiki function for the use of recipe writers?<br><br><br>ti</font><span style="color:rgb(0,0,0);font-family:'Lucida Console','Andale Mono','Courier New',Courier,monospace;font-size:0.85em;line-height:1.2em;white-space:pre-wrap;background-color:rgb(250,250,250)">a</span><font color="#000000" face="Lucida Console, Andale Mono, Courier New, Courier, monospace"><span style="font-size:0.85em;line-height:1.2em;white-space:pre-wrap;background-color:rgb(250,250,250)"><br></span></font></pre><pre style="margin-top:0px;margin-bottom:0px;font-size:0.85em;font-family:'Lucida Console','Andale Mono','Courier New',Courier,monospace;line-height:1.2em;border:none;padding:0.5em;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);background-color:rgb(250,250,250)"><br></pre><pre style="margin-top:0px;margin-bottom:0px;font-size:0.85em;font-family:'Lucida Console','Andale Mono','Courier New',Courier,monospace;line-height:1.2em;border:none;padding:0.5em;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);background-color:rgb(250,250,250)">Simon</pre><pre style="margin-top:0px;margin-bottom:0px;font-size:0.85em;font-family:'Lucida Console','Andale Mono','Courier New',Courier,monospace;line-height:1.2em;border:none;padding:0.5em;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);background-color:rgb(250,250,250)"><br></pre></div></div></div>