Answer the question
In order to leave comments, you need to log in
How to get photo not from web folder in YII2?
I have the path you-project/profile/index where the user's photo should be displayed. User photos are stored in the downloads folder, which is on the same level as the web folder, how do I get these photos?
on the way you-project.ru/downloads/1.jpg naturally does not see.
I came across this article:
ru.stackoverflow.com/questions/485774/yii2-%D1%84%... Using
it, I created a common Media controller in it's action Image, where we pass the name of the photo.
How can I get a photo from youproject/media/image/1.jpg?
Answer the question
In order to leave comments, you need to log in
on the way you-project.ru/downloads/1.jpg naturally does not see.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question