[pmwiki-users] Re: Attach:file gives incorrect URL
Theron Parlin
tparlin at gmail.com
Thu Aug 4 07:56:23 CDT 2005
I found a work-around...
in scripts/uploads.php after this line:
SDV($UploadUrlFmt,preg_replace('#/[^/]*$#',"/$UploadDir",$ScriptUrl,1));
I added:
$UploadUrlFmt="$ScriptUrl/uploads";
It fixed the problem, but I'm still not sure why it was broke to begin
with...
-Theron
On 8/4/05, Theron Parlin <tparlin at gmail.com> wrote:
>
> Hello,
>
> When I try to attach a file, I put [[(Attach:)filename]]
>
> The URL it gives me is "http://uploads/Main/filename"
>
> Does anyone know why that might be happening?
>
> --
> Theron Parlin, Editor and Columnist, tparlin at thoughtmechanics.com --
> Subjective Opinions on Political News -- http://www.thoughtmechanics.com
> My PmWiki skin: http://www.pmwiki.org/wiki/Cookbook/WikiLoveSkin
>
--
Theron Parlin, Editor and Columnist, tparlin at thoughtmechanics.com --
Subjective Opinions on Political News -- http://www.thoughtmechanics.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20050804/9177d63a/attachment.html
More information about the pmwiki-users
mailing list