[pmwiki-devel] Upload variables available in PmWiki

Dominique Faure dominique.faure at gmail.com
Fri Aug 21 05:43:59 CDT 2015


http://www.pmwiki.org/wiki/Cookbook/LinkedResourceExtras :)

On Fri, Aug 21, 2015 at 12:19 PM, Simon <nzskiwi at gmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> pmwiki-devel mailing list
> pmwiki-devel at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
>



-- 
Dominique



More information about the pmwiki-devel mailing list