C
C#8mo ago
Bordin

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
No description
4 Replies
Angius
Angius8mo ago
Yeah, a controller would work Or the built-in file-serving middleware By default it serves files from /wwwroot directory, but it's configurable
Bordin
BordinOP8mo ago
is 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
Angius
Angius8mo ago
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.
Bordin
BordinOP8mo ago
alright, ill check it out tomorrow since i have to sleep now. Thank you!
Want results from more Discord servers?
Add your server