Copied to clipboard

Flag this post as spam?

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


  • Andrew 8 posts 79 karma points
    Aug 19, 2019 @ 03:03
    Andrew
    0

    Setting up Azure Blob Storage

    Hello

    I am having an issue with Umbraco 8 and my /media/ folder pointing to Azure Blob Storage, the problem is only happening on localhost

    If I have Image Processor parameters my images redirect to the correct place (Azure Blog Storage cache )

    e.g. http://localhost/media/hzlhut3x/video-analysis-laptop.png?rnd=1

    But If I don't have any URL parameters I I get a 404

    e.g. http://localhost/media/hzlhut3x/video-analysis-laptop.png

    In Umbraco7, I would have checked FileSystemProviders.config to double check my settings but in Umbraco8 there is no such file, so instead I am double checking my web.config settings are correct:

    <add key="AzureBlobFileSystem.ContainerName:media" value="media" />
    <add key="AzureBlobFileSystem.RootUrl:media" value="https://[redacted].blob.core.windows.net/" />
    <add key="AzureBlobFileSystem.ConnectionString:media" value="DefaultEndpointsProtocol=https;AccountName=[redacted];AccountKey=[redacted]" />
    <add key="AzureBlobFileSystem.MaxDays:media" value="365" />
    <add key="AzureBlobFileSystem.UseDefaultRoute:media" value="true" />
    <add key="AzureBlobFileSystem.UsePrivateContainer:media" value="false" />
    

    I've checked inside Azure > Storage Accounts and the blobs exist with the correct permission (blob), and if i click on the file I can see the image

    Any tips?

  • Shaishav Karnani from digitallymedia.com 348 posts 1629 karma points
    Aug 19, 2019 @ 06:51
    Shaishav Karnani from digitallymedia.com
    0

    Yes this need to be added to web.config.

    This article will help you to setup Azure Blob Storage correctly on Umbraco 8.

    https://our.umbraco.com/documentation/Extending/FileSystemProviders/Azure-Blob-Storage/

    Hope this helps and let me know if you need any further assistance.

    Regards,

    Shaishav

    https://www.digitallymedia.com/

  • Andrew 8 posts 79 karma points
    Aug 19, 2019 @ 20:41
    Andrew
    0

    Hi Shaishav

    Yes, I added those settings to my web.config and followed the instructions and I am still having the same issue.

    It's happening on four of my websites that run Umbraco 8.

    It's not happening on my staging environment - only on localhost

    Andrew

  • Jeroen Vantroyen 41 posts 356 karma points c-trib
    Oct 15, 2019 @ 09:57
    Jeroen Vantroyen
    1

    I had the exact same problem. Without parameters, I get a 404, but with parameters, the image works fine.

    I found the solution in a faulty Media/web.config, according to this thread - https://our.umbraco.com/forum/using-umbraco-and-getting-started/97860-svg-media-files-not-loading-from-azure-blob-storage

Please Sign in or register to post replies

Write your reply to:

Draft