Im trying to combine the ImageResizer plugins DiskCache and Virtualfolder, becouse I want to save the images to a network path. I have added both plugins in my webconfig:

 <resizer>
    <plugins>
      <add name="MvcRoutingShim" />
      <add name="DiskCache" />
      <add name="PrettyGifs" />
      <add name="SimpleFilters" />
      <add name="VirtualFolder" virtualPath="~/" physicalPath="D:\temp\diskcache" vpp="false"/>
    </plugins>
    <diskCache dir="~/" autoClean="false" hashModifiedDate="true" enabled="true"
             subfolders="32" cacheAccessTimeout="15000" />
  </resizer>

But I dont understand how I should map the VirtualFolder diskcache dir, to save to the physical path.

Could someone give an example how to save images with diskcash to a network path?

有帮助吗?

解决方案

You must use an IIS virtual folder, not an ImageResizer virtual folder. And it can't be the root of the site, it needs to be a subdirectory.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top