I just installed my SYmfony app on a server and the images are not displayed. I tried no modify the access rights on the web folder but it didnt work.
What is the good way to configure access on a server with a symfony project ?
I display my image like this :
<div class="user-info" style="background-image:url({{ asset('bundles/app/images/header/userbg.jpg') }});">
<div class="image">
<img src="{{ asset('uploads/')~user.image }}" width="48" height="48" alt="User" />
</div>
</div>
The html code generated is like this :
<div class="user-info" style="background-image:url(/bundles/app/images/header/userbg.jpg);">
<div class="image">
<img src="/uploads/empty-profile.png" width="48" height="48" alt="User">
</div>
</div>
I don't understand the good way to manage images on my app. It is displayed well on my local server.