Copied to clipboard

Flag this post as spam?

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


  • Ivan Nikolov 1 post 21 karma points
    Mar 13, 2020 @ 13:03
    Ivan Nikolov
    0

    Using UmbracoFileSystemProviders.Azure.Media does not process media files in Azure blob uploaded from Umbraco BackOffice

    Hi guys,

    I am using AzureBlob container to store Umbraco media files with UmbracoFileSystemProviders.Azure and UmbracoFileSystemProviders.Azure.Media Nuget packages, but it does not work when I upload new image in Umbraco media. I already had a list of media files, which I uploaded manually to AzureBlob and for them everything works, so I can see them in Umbraco BackOffice and my site also renders them. The issue is when I upload new image from BackOffice, it seems the image is stored in the container, but the BackOffice tries to render it using the blob url, not the CMS url.

    https://[CMS]/media/q3ib0inw/building.jpg - works

    https://[BlobURL]/media/q3ib0inw/building.jpg - does not work

    For the manually uploaded media files Umbraco BackOffice tries to render the CMS URL and it works. For the new uploaded images (through BackOffice), it tries to render the Blob Url (instead of the CMS one) and it does not work.

    Here are my configurations for security.config

    <service prefix="media/" name="CloudImageService" type="ImageProcessor.Web.Services.CloudImageService, ImageProcessor.Web">
      <settings>
        <setting key="Container" value="media"/>
        <setting key="MaxBytes" value="8194304"/>
        <setting key="Timeout" value="30000"/>
        <setting key="Host" value="https://[bloburl].blob.core.windows.net/media"/>
      </settings>
    </service>
    
    <service prefix="remote.axd" name="RemoteImageService" type="ImageProcessor.Web.Services.RemoteImageService, ImageProcessor.Web">
      <settings>
        <setting key="MaxBytes" value="4194304"/>
        <setting key="Timeout" value="3000"/>
        <setting key="Protocol" value="http"/>
      </settings>
      <whitelist>
        <add url="https://[bloburl].blob.core.windows.net/" />
        <add url="https://[CMSURL].azurewebsites.net/" />
        <add url="http://localhost" />
        <add url="http://127.0.0.1" />
      </whitelist>
    </service>
    

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies