Zpixel
08-30-2009, 12:16 PM
this is an asp net website.
using file.PostedFile.SaveAs("c:\\upload\\" + newFileName); the uploded file will be saved at C drive.
I want to store that file in the website folder, ie, the folder that Default.aspx exists. How should i write the path? is "|DataDirectory|\\upload\\" the correct path? but it doesn't work.
using file.PostedFile.SaveAs("c:\\upload\\" + newFileName); the uploded file will be saved at C drive.
I want to store that file in the website folder, ie, the folder that Default.aspx exists. How should i write the path? is "|DataDirectory|\\upload\\" the correct path? but it doesn't work.