I am using the /kartik-v/yii2-widget-fileinput along with the yii2 improved advanced template and the images are being saved to the following directory
advanced/_protected/frontend/uploads
In my model I have the following which sets the paths
You can’t directly access files in your protected folder in the browser. Here is a Yii 1 function to do it. You can convert it to yii2, it’s the same concept.
Or you can tell yii to publish the file into assets then call it using asset manager. The above came from stack but I’ve used something very similar and it works.