Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
I think a line in your question was lost(?), but you should be able to get the local path like this:
UnifiedFile file = HostingEnvironment.VirtualPathProvider.GetFile(path) as UnifiedFile;
string filePath = file.LocalPath;
I'm new in episerver, and I have a issue for PageFiles subdirectories
I must get the absolute path on this directories, but I can get only path for PageFiles like this:
EPiServer.Web.Hosting.VirtualPathVersioningProvider p = EPiServer.Web.Hosting.VirtualPathHandler.GetProvider("SitePageFiles") as EPiServer.Web.Hosting.VirtualPathVersioningProvider; string paths = p.PhysicalBasePath.FullName;
but I want to get path like this C:\EpiServer\VPP\PageFiles\77\ae\77ae343-34543.pdf