IIS6 access parent folder of the of the app home folder

Posted by André Alçada Padez on Stack Overflow See other posts from Stack Overflow or by André Alçada Padez
Published on 2010-12-23T02:37:57Z Indexed on 2010/12/23 2:53 UTC
Read the original article Hit count: 234

Filed under:
|
|

Well. i'm really sorry for the fact that this question is easily testable, but i need to plan this for tomorrow and i don't have the means to test it now. I'm willing to lose the reputation if you are willing to help me out.

Scenario: i got

-iis wwwroot
   - domainfolder (DynamicWeb Instalation)
        - destinationfolder
   - subdomain folder
          default.aspx

I need to know if i can make a fileupload in my Default.aspx, and do something like:

fileUpload.SaveAs(Server.MapPath("../domainfolder/destinationfolder/") + filename)

keep in mind that I will have full access to the windows server where the sites are hosted.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about iis6