Expand my Community achievements bar.

Any way to generate urls for images in Assets as a public url ?

Avatar

Level 1

I have a requirement to use some images in the Assets to be used in some public domains. I can find only two ways one is the via REST API other is by integrating with adobe webfront selector. Both requires authentication for accessing the assets. There is a share button for the assets but it is loading the assets as a content inside the page.

 

I'm expecting something like I can post a blog or post something where I need to include an image which is from the my assets(a publicly accessible link). Is there any option to generate a link (like https:/{adobe'sdomine}/path/to/asset.jpg ) which can be pasted on browser servers the file without any additional authentication ?

I tried with folder listing GET /api/assets/myFolder.json API, but while pasting the content url in browser still asks for adobe id for login

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

5 Replies

Avatar

Community Advisor

@user26192 If you want your asset to be available in public setting , you need to publish the asset and make it live  with either a custom domain set up (Author -> Publish -> Dispatcher -> CDN) and deliver it. Or make use of Dynamic media and publish your asset to DM and use the DM URL of the image inside your blog. 

 

 

@Saravanan_Dharmaraj so you're saying that we could connect our company's  managed CDN to the AEM publish environment and then use that for making images public? Is there any documentation on how to set that up?

Avatar

Community Advisor

@David_Fischer92 You can check the below documentation for high level idea of how to set up domain and set up of dispatcher. You have to engage your CDN(Akamai or other) team to set up A record and to connect the CDN to LB URL of your AEM set up. 

https://experienceleague.adobe.com/en/docs/experience-manager-dispatcher/using/configuring/dispatche... 

And this can be done for assets?  We don't have AEM sites just assets.

Avatar

Community Advisor

Hi,

 

You simply need to publish/activate the asset to make it publicly accessible through your domain. For example, if you have an asset under /content/dam/myasset.jpg, after publishing it, you should be able to access it at https://yourdomain.com/content/dam/myasset.jpg.

Just be mindful that some domains may have URL rewrites configured in the dispatcher module, which could result in a different URL. You can easily verify this by checking the URL of another asset that is already live.

 

Hope this helps



Esteban Bustamante