-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"media" folder is not connecting to azure CDN, still points to app_data #7827
Comments
You maybe confusing the idea of blob storage with cdns? I think maybe we've had this conversation already. They're two different things The configuration you maybe missing is listed here in the Media section
To use a cdn with Orchard Core (unrelated to blob storage completely - though blob storage maybe a backing store)
|
Thank you Dean, it might be helpful to run you to the steps I did.
I am able to upload files from CMS media section (admin) all the way to my Storage using config on item #2 So I understand that I'm using storage and not CDN, coz on the config it didn't say CDN it just says container, my question is when the page loads the /media/whatever.jpg is not pointing to that storage. So am I missing something, for now my work around is to inject the the CDN profile (mycdn.azureedge.net) as baseurl and attached to my "img src=baseurl/media/whatever;jpg" but I have to make the media text to capital M (Media) otherwise the storage will not recognize coz it's case sensitive. Anyway, hope that makes sense. Thank you as always, I know it worked before just using this setup, but now it's not for some reason. And yes I will try that solution you just sent me and keep you posted. Warm regards, |
Ok I finally figured out how this whole media to media azure works. Essentially I have to wait like what it says on the documentation for the cache to download the image back to cms. Thank you for all the help @deanmarcussen |
Hi all,
Just a clarification, when I updated the appsettings to point to cdn, everything worked as far as uploading new media and creating a folder from cms admin, it gets replicated on ourcontainer, but now since our cms content has a relative url like "\media\slideshow\banner1.jpg" it's not displaying but when I go to https://ourcdn.azureedge.net/images/slideshow/banner1.jpg it shows up.
Did I miss something in the config file? how do I hook these up, so the media folder will not look at the cms media folder but the cdn setup.
Thank you as always.
Regards,
G
The text was updated successfully, but these errors were encountered: