Copied to clipboard

Flag this post as spam?

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

  • Greg 12 posts 102 karma points
    Jan 27, 2022 @ 12:50

    Can't download PDF from Umbraco media folder when using Azure blob storage

    I've got an umbraco 8.14.1 site configured to use Azure blob storage for the media folder. Images work fine, but when I try to link to a PDF I get a 404 with the body

    The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    If I replace the domain name of the site with the domain for the storage account I can view the PDF without issue, therefore the PDF is definitely in Blob storage.

    Why aren't PDFs working but images are?

  • Greg 12 posts 102 karma points
    Jan 27, 2022 @ 14:49

    After upgrading Umbraco to latest 8.17.1 I noticed there was a line added to ~/Media/web.config

    <add name="StaticFileHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.StaticFileHandler" />

    Adding that fixed the issue.

Please Sign in or register to post replies

Write your reply to: