Categories
October Surprise 2024

System.IO.DirectoryNotFoundException: Could not find a part of the path

I think you should be careful with the fileupload.SaveAs (string filename) method. The filename in the method is the full path of the location on the server. You may specify the save path like this: ā€œstring savePath = “c:\temp\uploads\”;ā€