If the $ScriptURL variable does not contain a slash, then the uploads functionality is broken.<br><br>I originally added this issue as <a href="http://www.pmwiki.org/wiki/PITS/00645">http://www.pmwiki.org/wiki/PITS/00645</a>
before I subscribed to this list. I thought I'd bring it up here to see if my approach at addressing this issue was OK and it the PITS should be closed.<br><br>We originally had our $ScriptURL set to "<a href="http://my-project.my-company.com/wiki">
http://my-project.my-company.com/wiki</a>". I had a new DNS entry added for our server and was able to setup a VirtualHost to generalize the $ScriptURL to not be project-centric, but to be more inclusive to our whole department. The new $ScriptURL is "
<a href="http://my-department-wiki.my-company.com">http://my-department-wiki.my-company.com</a>". Please note, the "/wiki" at the end of the URL is now resolved by the VirtualHost.<br><br>Everything appeared to work fine, except uploads. The links for any uploaded files now appeared as "http:/uploads/Group/file.ext", without any base URL.
<br><br>I tried several things to get this to work, but settled on setting $UploadUrlFmt to be "<a href="http://my-department-wiki.my-company.com/uploads">http://my-department-wiki.my-company.com/uploads</a>". 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.<br><br>Is this a bug or does the documentation just need to be updated to point out this issue?
<br><br>Thanks in advance,<br>Kurt<br><br>Version: 2.1 beta 14<br>OS: Linux/Apache/PHP4.3.2<br><br><br>