Thanks Michael
however, that doesn't seem to work unless I am doing something really wrong.
For example if I configure storage provider for media as bellow I still cannot access the files using relative path.
protected override void OnInit()
{
base.OnInit();
// Creates a new StorageProvider instance for the Windows file system
var mediaProvider = StorageProvider.CreateFileSystemStorageProvider();
// Specifies the target root directory. The provider creates the relative path of the mapped folders within the given directory.
mediaProvider.CustomRootPath = @"D:\CustomMediaRoot";
// Maps a directory to the provider
StorageHelper.MapStoragePath("~/DancingGoat/Media", mediaProvider);
}
This code will store the media library in D:/CustomMediaRoot/DancingGoat/media but it is not accessible using direct path e.g. http://localhost/DancingGoat/Media/HomePage/banner-default.jpg
Regards