Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Melissa Combs 1 post 71 karma points
    Nov 02, 2018 @ 07:21
    Melissa Combs
    0

    The PDF link returns 404 with UmbracoFileSystemProviders.Azure

    Hello,

    I'm using UmbracoFileSystemProviders.Azure with Umbraco 7.10.4. Everything is working fine with images, but the links to the back of a PDF 404. I know PDF is there, they are even indexed.

    Any suggestions on what could be causing this?

  • Yakov Lebski 554 posts 2118 karma points
    Nov 02, 2018 @ 17:06
    Yakov Lebski
    0

    please add this part to your web.config

    <location path="media">
        <system.webServer>
          <handlers>
            <remove name="StaticFileHandler" />
            <add name="StaticFileHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler" />
          </handlers>
        </system.webServer>
      </location>
    
  • Anthony Southworth 46 posts 173 karma points
    Feb 04, 2020 @ 14:25
    Anthony Southworth
    0

    I've just fixed this issue by adding the following web.config to the media folder:

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
      <system.webServer>
        <handlers>
          <clear />
          <add name="StaticFileHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler"/>
          <add name="StaticFile" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read"/>
        </handlers>
      </system.webServer>
    </configuration>
    
Please Sign in or register to post replies

Write your reply to:

Draft