Uploads folder
Hello, I have an Uploads folder on my server. I just want to know how could i access the folder on the frontend?
Do i need to make a controller for it? i dont know. here's my folder structure.
I just want to know how can i make the images accessable
4 Replies
Yeah, a controller would work
Or the built-in file-serving middleware
By default it serves files from
/wwwroot
directory, but it's configurableis there somewhere i can read more about this? i am not sure what's the built-in thing you are talking about
hmm, i dont know, seems extra work on the server.
idk
i think it should server it from the /wwwroot as you said.
but idk anything about it
Static files in ASP.NET Core
Learn how to serve and secure static files and configure static file hosting middleware behaviors in an ASP.NET Core web app.
alright, ill check it out tomorrow since i have to sleep now. Thank you!