WillemM
January 6th, 2003, 06:19 AM
I want to upload a file with this function:
private void UploadFile()
{
FileInfo fl;
fl = new FileInfo(File1.Value);
File1.PostedFile.SaveAs("C:\\webdata\\" + fl.Name);
}
But this doesn't work at all :(
It gives an error that it can't save the file on that location on the server disk. Has this something to do with security or is it my code ?
private void UploadFile()
{
FileInfo fl;
fl = new FileInfo(File1.Value);
File1.PostedFile.SaveAs("C:\\webdata\\" + fl.Name);
}
But this doesn't work at all :(
It gives an error that it can't save the file on that location on the server disk. Has this something to do with security or is it my code ?