More flexible library URL would be useful

May 24, 2009 at 1:41 PM
Edited May 24, 2009 at 1:44 PM

Thanks for this Paul. It will be useful.

Of course there's always something :) 

It would be nice of the library URL could begin with a slash and not require the full protocol, host name etc. The reason for this is that our SharePoint site is accessible in two ways.

Within the LAN it's something like http://server:1234/OurSite but from the outside word it's SSL seems like an unnecessary performance hit within the LAN and the host name prevents it from going out the router and back. This web part means that we really need to use the same URL at all times. That problem would be solved if the library URL could be set to something simple like /OurSite/ImageUpload. I tried putting that in web.config but I get "Invalid URI: The format of the URI could not be determined" when trying to add an image. I'm not quite sure from what part of the code that text comes from. It's the message from a UriFormatException.

Anyway ... I can probably do something with the DNS to allow local users to use the full URL without really leaving the LAN and accept the use of SSL which is a requirement for accessing from the internet.


May 24, 2009 at 2:10 PM

I just realized that I can edit the web part after uploading. In there I can remove the unwanted first part of the URL and then it works nicely via both access methods so that's a usable workaround.