© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•8mo ago•
17 replies
morry329#

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
BlazeBin - onrircjrolus
A tool for sharing your source code with the world!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Load Images from project folder
C#CC# / help
3y ago
✅ Folder selector can not select folder from phone
C#CC# / help
2y ago
✅ How to create a folder in project root?
C#CC# / help
2y ago
Not being able convert from string to int
C#CC# / help
3y ago