我想在控制器中获取文件URL请求。 什么时候来这个请求
http://localhost:4616/Images/Users/mohammadhossein21@gmail.com/hm2.jpg
或此请求
http://localhost:4616/Images/Users/mohammadhossein21@gmail.com/4230.pdf
我可以在Images Controller
public ActionResult Users(string Email, string Name)
{
string subPath1p = Directory.GetParent(Server.MapPath("~/")).Parent.FullName + "\\SUPPORT_USERSFILES\\" + Email+"\\"+Name+".pdf";
return File(subPath1p, "application/pdf");
}