I am creating an image gallery by pumping out the contents of a folder in the VPP.
To show the image in the html I am accessing the unfiedFile.VirtualPath property, and the path looks correct.
Such that the image src tag is
http://siteurl/unified.VirtualPath, however the image is not displaying correctly, is there a prefix to the virtualPath property that I need to use?
Have you rememberd to add your new Virtual directory like the Global in web.config
<staticFile expirationTime="-1.0:0:0" />
<add name="webresources" path="WebResource.axd" verb="GET" type="System.Web.Handlers.AssemblyResourceLoader" />
<add name="wildcard" path="*" verb="*" type="EPiServer.Web.StaticFileHandler, EPiServer" />
Thanks for your reponse. The directories created are within existing directories and are created via the file manager.
Therefore I presume I do not need to do this.