I'm trying to update the location of the media files on our Umbraco instance from the dev folder of the machine to a network drive. I understand that the way to do this is to update the FileSystemProviders.config file.
The Umbraco instance still insists on outputting all media paths with the default "/media" prefix, and no exceptions are thrown in Elmah. I looked at the source code, and if the Umbraco.Core.IO.PhysicalFileSystem.cs file is being hit, there should have been an exception thrown at least. For example, in the very first case above, this case should have been caught and an exception thrown:
if (virtualRoot.StartsWith("~/") == false)
throw new ArgumentException("The virtualRoot argument must be a virtual path and start with '~/'");
Am I missing something? Why am I not able to correctly update the path to the location of the media files?
Unable to update PhysicalFileSystem correctly
Hi all,
I'm trying to update the location of the media files on our Umbraco instance from the dev folder of the machine to a network drive. I understand that the way to do this is to update the
FileSystemProviders.config
file.Here is the link I've been following: http://www.proworks.com/blog/archive/how-to-redirect-the-umbraco-media-path-to-another-location/
I tried all the following variously:
And:
I even tried inputting garbage, like so:
The Umbraco instance still insists on outputting all media paths with the default "/media" prefix, and no exceptions are thrown in Elmah. I looked at the source code, and if the
Umbraco.Core.IO.PhysicalFileSystem.cs
file is being hit, there should have been an exception thrown at least. For example, in the very first case above, this case should have been caught and an exception thrown:Am I missing something? Why am I not able to correctly update the path to the location of the media files?
Thanks for your help!
is working on a reply...