November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
I've found the solution. To get information about the current provider for BlobStorage, use BlobStorage.Provider and then cast it into PublicDiskStorageProvider to access the basePath property.
var blobStorage = (PublicDiskStorageProvider)BlobStorage.Provider;
var file = new FileStream(blobStorage.BasePath + header.BlobUid.ToString("N") + @"\" + header.Name, FileMode.Open, FileAccess.Read);
Brgds
Jonas
Hi,
I'm using EPiServer Commerce 1 and I need to get access to the basePath attribute defined in baf.config for the default storage provider PublicDiskBlobStorageProvider. Is there a way to get to this using the EPiServer API, or do I need to parse the baf.config file "manually" and find the wanted element?
Any tips?
Brgds
Jonas