need to exit virtual directory
-
I am curently working on asp.net application and her CMS system... This is virtual directory of site: application and CMS have his own virtual directory here application/admin so my question is: can i access first application folders such as: application/images from CMS system which is located in virtual directory application/admin ------------------------------------------------------------------------------------ I was trying this way: Request.Files[0].SaveAs(Server.MapPath("../test.txt")) But this way i should exit virtual directory and get error "Cannot use a leading .. to exit above the top directory." Any help or alternative solution appreciated! Thx in advance....
-
I am curently working on asp.net application and her CMS system... This is virtual directory of site: application and CMS have his own virtual directory here application/admin so my question is: can i access first application folders such as: application/images from CMS system which is located in virtual directory application/admin ------------------------------------------------------------------------------------ I was trying this way: Request.Files[0].SaveAs(Server.MapPath("../test.txt")) But this way i should exit virtual directory and get error "Cannot use a leading .. to exit above the top directory." Any help or alternative solution appreciated! Thx in advance....
MapPath is assuming that you're starting at the top level, not at your current one. So, don't do the . thing, specify the full path.
Christian Graus Driven to the arms of OSX by Vista.