Login

Blog entries tagged with virtual file

Apr
29

Trouble loading virtual file with spaces

Posted by: Erik Nordin

Had some trouble loading a vitrual file containing spaces. The problem was apperently that some characters were urlencoded, a simple Server. UrlDecode(CurrentPage["DocumentPath"]) solved the problem. [Read full article]

0 Comments

Apr
28

Get file size from a virtual file in EPiServer

Posted by: Erik Nordin

VirtualFile file = System. Web. Hosting. HostingEnvironment. VirtualPathProvider. GetFile( CurrentPage["FilePath"]. ToString() ); UnifiedFile f = file as UnifiedFile; return f. Length / 1024 + ” kb”; [Read full article]

0 Comments

EPiTrace logger