Not able to reference images from root folder
Please see the attached video. My app is able to save images in the photo folder nested in wwwroot. They are not displaying in the 100px100px image square (they look pretty empty in my video). Instead, they just got displayed in their original sizing while I scroll down my browser.
I tried something along the lines of:
````
<div class="content">
<div>
<img src="/imgSearchHome" style="display:block; width:100px;height:100px;">
</div>
<p>
Property Name: <span class="view-mode listing-name">@listingModel.ListingName</span>
Property Review: <span>@listingModel.ListingReview</span>
</p>
/ more codes..*/
````
But my devtool points at /imgSearchHome with 404. Could anyone help me understand why this happens?
My full code for reference https://paste.mod.gg/onrircjrolus/0
I tried something along the lines of:
````
<div class="content">
<div>
<img src="/imgSearchHome" style="display:block; width:100px;height:100px;">
</div>
<p>
Property Name: <span class="view-mode listing-name">@listingModel.ListingName</span>
Property Review: <span>@listingModel.ListingReview</span>
</p>
/ more codes..*/
````
But my devtool points at /imgSearchHome with 404. Could anyone help me understand why this happens?
My full code for reference https://paste.mod.gg/onrircjrolus/0
A tool for sharing your source code with the world!