Didn't see this before....
Are you adding test to the beginning of the file name when saving it or are you trying to add the file to the test directory under c:\ ?
if you are adding test to the file name then change my code to be this...
If System.IO.File.Exists("C:\test" & FileUpload1.PostedFile.FileName) Then
otherwise
If System.IO.File.Exists("C:\test\" & FileUpload1.PostedFile.FileName) Then
should work?
__________________
Jason Hall
|