[pmwiki-users] Uploads broken if ScriptUrl has no /

Patrick R. Michaud pmichaud at pobox.com
Mon Jan 23 10:30:58 CST 2006


On Mon, Jan 23, 2006 at 10:40:50AM -0500, Kurt Devlin wrote:
>    If the $ScriptURL variable does not contain a slash, then the uploads
>    functionality is broken.
> 
>    I tried several things to get this to work, but settled on setting
>    $UploadUrlFmt to be "http://my-department-wiki.my-company.com/uploads".
>    This is not a standard variable that is set in the sample config.php or
>    mentioned extensively in the documentation, so I feel a little tentative
>    about using this solution. I'm concerned that future enhancements to
>    uploads will change or break this functionality.
> 
>    Is this a bug or does the documentation just need to be updated to point
>    out this issue?

The documentation might need to be updated -- setting $UploadUrlFmt
is indeed the correct and preferred solution for this.  See
http://www.pmwiki.org/wiki/PmWiki/UploadsAdmin, under 
"Basic Installation".

Also, $UploadUrlFmt will be mentioned in the sample-config.php file;
I thought it was there already but it's not.  :-|

Pm




More information about the pmwiki-users mailing list