00610: Upload Directory Name created differently in different places.
Description: my config.php:
$ScriptUrl = 'http://sinistar/wiki'; $EnablePathInfo = 1; $EnableGUIButtons = 1; $EnableUpload = 1; # $DefaultPasswords['upload'] = crypt('secret'); # $UploadDir = 'upload'; $UploadUrlFormat = 'http://sinistar/wiki/uploads';
I have my .htaccess
set up so I can say "http://sinistar/wiki/PmWiki/PmWiki
", for example. This works, pages add, edit, etc., just fine.
When I upload files, the uploads go as the $UploadUrlFormat
there specifies (and it works the same if I don't have this variable defined). However, the link returned from PmWiki for the actual attachment itself (in the "attached files" section of the page) elides the 'wiki' part of the path, and presumably that's why the Attach: macro doesn't work; these things are looking to load the file out of http://sinistar/uploads/
rather than http://sinistar/wiki/uploads/
. ...note that these are the paths that PmWiki gives me in my browser. If I key the "correct" location into my browser, Apache returns the files just fine.
Any tips? The workaround at this time (which from a user perspective is transparent so it's "ok") is to symlink ../uploads to this directory. --TomPlunket November 30, 2005, at 12:21 AM
Note that the variable used to set PmWiki's idea of the url for retrieving uploads is $UploadUrlFmt
, not $UploadUrlFormat. Try changing that and see if it fixes things. --Pm November 30, 2005, at 07:45 AM
Ah ha, that's it. Ok thanks. Hence the trouble with abbreviations; I read in the docs "Upload URL Format" and just typed that in. Thanks for the kind and gentle nudge. It does seem awkward still that the default for this variable does not match the default for what is uploaded to, though. --TomPlunket