I have app where user can upload images. I read that I need to upload these files outside the app or assets folder as those folders get compiled.
My app folder structure looks like this:
User files are supposed to go into media folder. Right now I have there example file media/user/default_dp.jpg
, but how do I access to this file in component template? Writing just
`<div class="my-dp dp rounded-circle" [ngStyle]="{'background-image':url(./media/user/default_dp.jpg)'}">`
does not do the trick.