View Single Post
  #10 (permalink)  
Old February 14th, 2008, 08:05 PM
hdpark hdpark is offline
Authorized User
 
Join Date: Oct 2007
Location: , , .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Imar,

I have got the physical path from hosting company, then it is working fine with codes "FileUpload1.SaveAs("e:\web\myaccount\htdocs\UserF iles\" & FileUpload1.FileName".
But your instruction looks like more generic. When I use your instruction "FileUpload1.SaveAs(Server.MapPath("/UserFiles/") & FileUpload1.FileName)", I have error message "Failed to map the path '/UserFiles/'".
Is there anyway I can use your instruction style?

Thanks Imar for your kind help,