[pmwiki-devel] Upload variables available in PmWiki

Simon nzskiwi at gmail.com
Fri Aug 21 05:19:40 CDT 2015


On page http://www.pmwiki.org/wiki/PmWiki/UploadVariables

the following variables are defined

$UploadUrlFmt

$UploadDir

$UploadPrefixFmt


But they are not exposed to PmWiki markup, i.e. don't work on the website.

Are there any variables that are?


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.

It would have to cope with per page/per group attachments, and the
standard pmwiki variants

filename.ext

group.page/filename.ext


etc.


Ideally if the file does not exist it would exhibit an upload link.


Or is there an internal PmWiki function for the use of recipe writers?


tia


Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20150821/230cb95d/attachment.html>


More information about the pmwiki-devel mailing list