1 year ago
#313577
stucknubie
mapping virtual path to physical path asp net core
Given an url http://localhost:5000/UploadFolder/filename.pdf as a virtual path, i want to get the physical path name that is connected to the virtual directory that i've made.
how to read the files in physical path named "Uploads" from the given url? I'm using ASP NET CORE C# and Server.MapPath doesn't work. Is there any alternative to read the file?
c#
asp.net-core
virtual-directory
0 Answers
Your Answer