Upload files in external host

Discussion in 'C#' started by bertanha, Mar 9, 2010.

  1. #1
    Hi people

    I'm having problems with the direction of my upload files, I look a lot of tutorials but it's deals how to direct in local host,
    I must direct upload to an external host,

    in first time i try of this:
    FileUpload1.SaveAs(Server.MapPath("\\fotografias\\") + CodigoAll);

    and:

    FileUpload1.SaveAs(Server.MapPath("e:\\home\\esteticael\\web\\fotografias\\") + CodigoAll);

    in local host i can upload the files, but int's don't work in my external host

    someone have an suggest??
     
    bertanha, Mar 9, 2010 IP
  2. CaseyM

    CaseyM Peon

    Messages:
    289
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can't you use the full URL Absolute path? that should solve it. What error are you recieving ?
     
    CaseyM, Apr 22, 2010 IP