My Symfony 3 web application has a user login control managed by FOSUserBundle. I am fine checking on login status on server side controlling all necessary actions a user may or may not do.
Now a user can upload images. There is a view that shows the user all of its images. To provide the frontend the needed img-pathes for this user-galery view I pass all the pathes for this users images to the frontend and then show it there.
This is were I get confused: How do I restrict access to this img-pathes to the respective (logged in) user only and deny it to all others? Or: How do I provide images to a frontend web view without using an img-path accessible for everyone? Is there a way to do this by using Symfony/FOSUserBundle functionality?