S
shapper
Hello,
I am uploading a file. Which one should I use?
FileUploadInsert.SaveAs(Server.MapPath("App_Files/MyFile.jpg"))
or
FileUploadInsert.SaveAs(Server.MapPath("~/App_Files/MyFile.jpg"))
Both work. Is "~/" necessary in this case?
Thanks,
Miguel
I am uploading a file. Which one should I use?
FileUploadInsert.SaveAs(Server.MapPath("App_Files/MyFile.jpg"))
or
FileUploadInsert.SaveAs(Server.MapPath("~/App_Files/MyFile.jpg"))
Both work. Is "~/" necessary in this case?
Thanks,
Miguel