Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.
You can do like this, not sure if there is a smoother way of doing it.
EPiServer.Web.Hosting.UnifiedFile f = System.Web.Hosting.HostingEnvironment.VirtualPathProvider.GetFile(virtualPath) as EPiServer.Web.Hosting.UnifiedFile;
string path = f.LocalPath;
I am suck here. I need to get the actual path of the image on the server from the unified file path.
I get this (/global/additionalImages/test.jpg) but i need the c:\vpp\123\123\123-123-123-123.jpg file. Is there a way to do this.
Thanks in advance.
Joshua