Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
This repository was 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

@tieftontier

Description

@tieftontier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions