Hi All,
**summary version: When using CDN, the URL returned appears to be incorrect.
I’m using the HQ package Umbraco.StorageProviders.AzureBlob (GitHub - umbraco/Umbraco.StorageProviders) to serve media from Azure for my site, but when using the CDN I’m having issues.
When I view images in the back office all is fine. When I upload images I can see they get added to the Azure storage account and I can see in the cache folder they’re created there too.
When I try and get an image back without using the CDN it works fine; e.g. it’ll return:
“https://localhost:44330/media/hacjqvy5/design.jpg”
So that image is on Azure in my storage account but it’s not using the CDN to pull it back. Fine.
Now when I try to return and image using the CDN (E.g. calling the URL of an image on a page) the following URL is returned - this doesn’t work.
“https://myAzureCdnUrl.net//hacjqvy5/design.jpg”
When looking in my storage account I can see the following:
Container:
Umbraco
Within the Umbraco container > Media and Cache
Within Media > folder called hacjqvy5 which contains design.jpg
Within Cache various files with unique 8 digit file names (no extensions) of content type octet-stream
Does anyone know what I’m doing wrong? (I used to use V7 Blob & azure CDN lots, without issue BTW)
Within Startup I have the connectionstring set, the container name set as “Umbraco” as per the above structure and my Azure CDN endpoint URL in the CDN URL field.
Thanks!
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/108022-umbracostorageprovidersazureblob-v9-wrong-path-for-cdn-images