Yii2 Uploads Path


(Andrewbilham) #1

Good Evening,

i have read a few posts but looking for some advice.

i have been using an i know its not the right way “…/” to get to the uploads path. after going live this didn’t work what is the correct way to write a file path?

Cheers


(Johnwales Jw) #2

So couple of things, I would suggest looking at this post about __DIR__.

And also this post about using it with Yii2 alias’.