Displaying Images from external URL

Hello,

One of our Ontology Objects has a property called “Picture,” which is an external URL pointing to an image. We have several thousand active objects, and they frequently change, as they represent items in a fast-evolving marketplace.

I came across a snippet that displays images from Media Sets, but I’m unsure if it’s possible to automatically import images from the URL, store them as Media Sets, and then use the URL as a reference to those images.

My questions are:

  1. Are Media Sets the right approach for this use case?
  2. Can this process be automated to handle frequent updates?
  3. Is there a simpler way to achieve this?
  4. Can I create a custom widget and integrate it into Workshops and data visualizations?

Thank you for your help!

For 3 - a simpler way that might work, depending on your use case and the variety of sources of these images, is to simply allow the displaying of image content from external sources.

You can manage this in the control panel: https://www.palantir.com/docs/foundry/administration/embed-foundry-externally and manually set the CSP media-src to be allowed from the domain the images are coming from.

Would that work?

2 Likes

Thank you very much @jkane, it was exactly what I was looking for!

1 Like