01162: Separate Upload URLs per Wiki

Summary: Separate Upload URLs per Wiki
Created: 2010-01-10 13:23
Status: Closed (Solution provided)
Category: Feature
From: Maddes
Priority: 3
Version: 2.2.8
OS: Debian, Apache, PHP 5.2.6

Separate upload URLs (not directories!) come in handy if you have a shared Pub URL for several wikis, but want/need separate upload URLs for them (e.g. public and private wikis).

Attached is a patch, that adds $UploadURL for this.
If $UploadURL is not set, then it defaults to $PubDirUrl, hence no change in the default behaviour.
I'm running this change since version pmwiki 2.1.27.


Hi. Why can't you just set $UploadUrlFmt in your config.php? See also $FarmPubDirUrl.--Petko January 10, 2010, at 01:47 PM

Setting $UploadUrlFmt directly works, thanks. A format string is not a path to me, that's why I didn't thought about this.

P.S.: .patch is not allowed, but it should be for a bug reporting system. .diff should be allowed too. Enabled, thanks. --Petko