문제

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