I am not very good with Virtual paths, but can't you just point the virtual Path to a physical location like it's done for "/Global" in episerver.config?
<add showInFileManager="false"virtualName="Thumbnails" virtualPath="/Thumbnails/" bypassAccessCheck="false" name="SiteThumbnails" type="EPiServer.Web.Hosting.VirtualPathVersioningProvider,EPiServer" indexingServiceCatalog="Web" physicalPath="C:\EPiServer\VPP\MyRelateSite\Thumbnails"/>
I've not tried this but maybe it's possible?
Anyway, My config look like this if it is any help;
<imageGallery imageAbsoluteFilePath="C:\EPiServer\VPP\MyRelateSite\EPiServerCommunity\Modules\ImageGallery\Originals" thumbnailVirtualFilePath="~/EPiServerCommunity/Modules/ImageGallery/Thumbnails" imgExtension=".jpg" imgMaxWidth="640" imgMaxHeight="640" saveOriginal="true" maxUserImageQuota="0"imgQuality="100"></imageGallery>
<allow users="*" />
Thanks for answer, Jens
I use the same configuration.
I tried to add virtual path provider to EPiServer.config, but thumbnails still stores to web site root.
Not sure, but it looks like in EPi source used Server.MapPath which ignores path providing.
I wonder if the following article might help:
A key point in the article is setting up a 'Thumbnails' virtual directory and pointing to the correct share.
I hope this helps,
Thanks a lot, Mark
Seems this solution should solve my problem
This seems like a pretty old post, but anyway we faced the same issue that ImageGallery thumbnail image virtual path is ignored by the ImageGalleryHandler class. Therefore found and excellent article on this topic and how to make thumbs to save to VPP folder instead under www root in folder named as in "virtual folder" attribute.