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.
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.
I'm having the same problem with Umbraco 8 and using AWS S3 for the media storage. I've tried the same thing with Azure blob storage and can confirm it also fails with that.
Having done some debugging I've chased this down to an issue with the image processor and in particular the disk cache. On line 371 of DiskCache.cs the following line tries to check if the object is a file or stored on the web.
if (new Uri(this.RequestPath).IsFile)
The issue is at this point for a web-based image the RequestPath is set to:
ssbhy3qv/image.png
which causes the new Uri to throw an exception, for images stored on disk the RequestPath is a mapped path to the drive so works. The issue with the exception is that it now assumes the image has not been updated.
Does anybody have a setup where they know this works so I can work out the difference?
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
Did you ever manage this? I'm having the same issue at the moment.
Hi,
I'm having the same problem with Umbraco 8 and using AWS S3 for the media storage. I've tried the same thing with Azure blob storage and can confirm it also fails with that.
Having done some debugging I've chased this down to an issue with the image processor and in particular the disk cache. On line 371 of DiskCache.cs the following line tries to check if the object is a file or stored on the web.
The issue is at this point for a web-based image the RequestPath is set to:
which causes the new Uri to throw an exception, for images stored on disk the RequestPath is a mapped path to the drive so works. The issue with the exception is that it now assumes the image has not been updated.
Does anybody have a setup where they know this works so I can work out the difference?
Thanks Andy
is working on a reply...