I am using Windows 10 and trying on my local. From backend, I am able to successfully upload image in backend/web/uploads folder and on frontend I tried to access via following code in gridview.
['attribute'=>'manufacturer_logo', 'label'=>'Logo', 'format' => 'html', 'value'=>function ($searchModel, $index, $widget) { return Html::img(Url::to('@web/uploads/' . $searchModel->manufacturer_logo),['width' => '50px']); }],
When I see image path from console then path looks like
/myprojectname/backend/web/uploads/home_page_default_image.png
I also tried path with http like
http://localhost/myprojectname/backend/web/uploads/home_page_default_image.png
but image is not showing, it is present in the folder, I am not able to find out what is the mistake?