[pmwiki-users] quicktime recipe problem
adam overton
a at plus1plus1plus.org
Sun Dec 20 02:43:25 CST 2009
well, this seems to work:
if(!strpos($path,"./")) $filepath = FmtPageName("$UploadFileFmt/".
$path, $pagename);
else $filepath = FmtPageName("$UploadDir/".str_replace('./','/',
$path), $pagename);
would appreciate any feedback if there's a more elegant solution
thx
a
On 20 Dec 2009, at 12:28 AM, adam overton wrote:
> hi
>
> i'm using the quicktime recipe, and i'm realizing that it won't
> allow me to embed files from AnotherGroup - for instance, the
> following works:
>
> (:quicktime Attach:myfile.mp3:)
>
> but this fails
>
> (:quicktime Attach:AnotherGroup./myfile.mp3:)
>
> this appears to be occuring b/c of a conditional in the quicktime
> recipe:
>
> $filepath = FmtPageName("$UploadFileFmt/".$path, $pagename);
> $FileUrl = LinkUpload($pagename, $imap, $path, $imap.$path, $imap.
> $path, "\$LinkUrl");
> if (!file_exists($filepath))
> return $FileUrl;
>
> $filepath is returning an incorrect path:
> /my/server/public_html/pmwiki/CurrentGroup/AnotherGroup./myfile.mp3
>
>
> i can think of a couple long ways around to correct this, but i'm
> wondering if anyone has a suggestion for a quick way to correct how
> $filepath & FmtPageName are executing?
>
> thanks,
> adam
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20091220/89a5b62e/attachment.html
More information about the pmwiki-users
mailing list