c# - How to find directory of a uploading file in ASP.NET MVC? -
.net mvc. want load xml file directory , directory path can random. can load xml file need know file directory path. can give me idea how can full directory path of xml file. suppose file in c:\abc\test.xml
or d:\cde\test2.xml
. if load 1st 1 need directory path c:\abc\test.xml
in application.
sorry late answer. problem did not full directory path read file. created cache memory save file , read it. like, var filesavepath = path.combine(server.mappath("~/xmlfiles"), filename);
Comments
Post a Comment