How to track a file is uploaded successfully or not in file upload control using c# ? so that we can give some custom message?
views:
25answers:
1
+1
A:
I presume you mean the ASP.NET FileUpload control? In that case you can just check the FileUpload.HasFile Property. If this is true, you have your file. After that, of course, you need to save the file to the filestore or database, but you can check for exceptions in the save method and if you are really paranoid use System.IO.File.Exists() to veryify it is there (presuming you save it to filestore).
Dan Diplo
2010-08-13 12:35:01
Thanks, I think System.IO.File.Exists() may be use full
Aditya Acharya
2010-08-19 05:34:29