Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

How to load images dynamically into angular application via directus sdk? #2424

Open
tieftontier opened this issue May 7, 2021 · 0 comments

Comments

@tieftontier
Copy link

Hi guys,

I have a directus collection that contains images.
Via directus sdk I can

  • log in
  • find the collection
  • get the path to the image.

If I want to display this image in my angular application I currently use:
<img class="images" src={{DirectusImagePath}}>

My problem is that I can not load the image this way as I get a "403 (Forbidden)" exception.

What is the correct way to do this, when I need to dynamically load images from directus into my angular web app?

Any help is greatly appreciated! Thanks a lot in advance!
Tom

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant